From f93714b18277b4bebcb1905302ced73c414f5302 Mon Sep 17 00:00:00 2001 From: dieghernan Date: Mon, 21 Sep 2020 07:42:00 +0000 Subject: [PATCH] Check equality on chars and no numbers --- R/get_eurostat_geospatial.R | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/R/get_eurostat_geospatial.R b/R/get_eurostat_geospatial.R index a9146bcc..950b996d 100755 --- a/R/get_eurostat_geospatial.R +++ b/R/get_eurostat_geospatial.R @@ -113,7 +113,7 @@ Please check your connection and/or review your proxy settings") # information regarding their licence agreements. # ") - if (resolution == "60" && year == 2016 && crs == "4326"){ + if (resolution == "60" && year == "2016" && crs == "4326"){ if (nuts_level %in% c("all")){ shp <- eurostat_geodata_60_2016 @@ -229,7 +229,7 @@ Please check your connection and/or review your proxy settings") } } - if (resolution != "60" & year != 2016){ + if (resolution != "60" & year != "2016"){ if (cache & file.exists(cache_file)) { cf <- path.expand(cache_file) message(paste("Reading cache file", cf))