diff --git a/DESCRIPTION b/DESCRIPTION index 2abcd565..84f2b9dd 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -48,7 +48,7 @@ Copyright: General Copyright © European Union, 1995 - today. See file Encoding: UTF-8 LazyData: true Roxygen: list(markdown = TRUE) -RoxygenNote: 7.3.1 +RoxygenNote: 7.3.2 X-schema.org-applicationCategory: cartography X-schema.org-isPartOf: http://ropengov.org/ X-schema.org-keywords: ropengov, r, spatial, api-wrapper, rstats, diff --git a/NEWS.md b/NEWS.md index a6214929..dbdf9509 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,7 +1,8 @@ # giscoR (development version) - Use **CRAN** DOI: . -- `gisco_get_education()`:Fix API entry points. +- `gisco_get_education()`: Fix API entry points. +- Review failing examples. # giscoR 0.5.0 diff --git a/R/gisco_addressapi.R b/R/gisco_addressapi.R index 92b62e18..3f82fd8b 100644 --- a/R/gisco_addressapi.R +++ b/R/gisco_addressapi.R @@ -52,35 +52,24 @@ #' @export #' @examplesIf gisco_check_access() #' \donttest{ -#' library(dplyr) -#' #' # Cities in a region #' -#' gisco_addressapi_cities(country = "PT", province = "LISBOA") %>% -#' as_tibble() -#' +#' gisco_addressapi_cities(country = "PT", province = "LISBOA") #' #' #' # Geocode and reverse geocode with sf objects -#' library(ggplot2) -#' #' # Structured search -#' #' struct <- gisco_addressapi_search( #' country = "ES", city = "BARCELONA", #' road = "GRACIA" #' ) #' -#' struct %>% -#' ggplot() + -#' geom_sf(aes(color = PC)) + -#' labs(color = "POSTAL CODES") +#' struct #' #' # Reverse geocoding -#' #' reverse <- gisco_addressapi_reverse(x = struct$X[1], y = struct$Y[1]) #' -#' glimpse(reverse) +#' reverse #' } gisco_addressapi_search <- function(country = NULL, province = NULL, city = NULL, road = NULL, diff --git a/README.md b/README.md index 763497af..8e148ec5 100644 --- a/README.md +++ b/README.md @@ -363,8 +363,7 @@ This package is in no way officially related to or endorsed by Eurostat. ## References -
+
diff --git a/codemeta.json b/codemeta.json index ee6756a5..8de149fb 100644 --- a/codemeta.json +++ b/codemeta.json @@ -14,7 +14,7 @@ "name": "R", "url": "https://r-project.org" }, - "runtimePlatform": "R version 4.4.0 (2024-04-24 ucrt)", + "runtimePlatform": "R version 4.4.1 (2024-06-14)", "provider": { "@id": "https://cran.r-project.org", "@type": "Organization", @@ -240,7 +240,7 @@ "applicationCategory": "cartography", "isPartOf": "http://ropengov.org/", "keywords": ["ropengov", "r", "spatial", "api-wrapper", "rstats", "r-package", "eurostat", "gisco", "thematic-maps", "eurostat-data", "cran", "ggplot2", "gis"], - "fileSize": "1260.085KB", + "fileSize": "1250.925KB", "citation": [ { "@type": "SoftwareSourceCode", diff --git a/data/gisco_coastallines.rda b/data/gisco_coastallines.rda index c6646ea8..e9f04458 100644 Binary files a/data/gisco_coastallines.rda and b/data/gisco_coastallines.rda differ diff --git a/data/gisco_countries.rda b/data/gisco_countries.rda index c35417e9..be7d4eb5 100644 Binary files a/data/gisco_countries.rda and b/data/gisco_countries.rda differ diff --git a/data/gisco_countrycode.rda b/data/gisco_countrycode.rda index 7c516acb..96f2dfc1 100644 Binary files a/data/gisco_countrycode.rda and b/data/gisco_countrycode.rda differ diff --git a/data/gisco_db.rda b/data/gisco_db.rda index 8f552e2a..22910165 100644 Binary files a/data/gisco_db.rda and b/data/gisco_db.rda differ diff --git a/data/gisco_nuts.rda b/data/gisco_nuts.rda index 10e97ea4..81f4ea92 100644 Binary files a/data/gisco_nuts.rda and b/data/gisco_nuts.rda differ diff --git a/img/README-example-1.png b/img/README-example-1.png index 4bd24fa2..15f47246 100644 Binary files a/img/README-example-1.png and b/img/README-example-1.png differ diff --git a/img/README-example-2.png b/img/README-example-2.png index 4b6cbf62..2a4bc624 100644 Binary files a/img/README-example-2.png and b/img/README-example-2.png differ diff --git a/img/README-labels-1.png b/img/README-labels-1.png index 2c53689a..1c666981 100644 Binary files a/img/README-labels-1.png and b/img/README-labels-1.png differ diff --git a/img/README-thematic-1.png b/img/README-thematic-1.png index d7ef811e..f2ab5f7c 100644 Binary files a/img/README-thematic-1.png and b/img/README-thematic-1.png differ diff --git a/inst/schemaorg.json b/inst/schemaorg.json index bfd923e4..a5c593c7 100644 --- a/inst/schemaorg.json +++ b/inst/schemaorg.json @@ -40,7 +40,7 @@ "name": "Comprehensive R Archive Network (CRAN)", "url": "https://cran.r-project.org" }, - "runtimePlatform": "R version 4.4.0 (2024-04-24 ucrt)", + "runtimePlatform": "R version 4.4.1 (2024-06-14)", "version": "0.5.0.9000" }, { diff --git a/man/gisco_addressapi.Rd b/man/gisco_addressapi.Rd index 025c410d..3de564f7 100644 --- a/man/gisco_addressapi.Rd +++ b/man/gisco_addressapi.Rd @@ -140,35 +140,24 @@ The resulting object may present the following variables:\tabular{ll}{ \examples{ \dontshow{if (gisco_check_access()) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf} \donttest{ -library(dplyr) - # Cities in a region -gisco_addressapi_cities(country = "PT", province = "LISBOA") \%>\% - as_tibble() - +gisco_addressapi_cities(country = "PT", province = "LISBOA") # Geocode and reverse geocode with sf objects -library(ggplot2) - # Structured search - struct <- gisco_addressapi_search( country = "ES", city = "BARCELONA", road = "GRACIA" ) -struct \%>\% - ggplot() + - geom_sf(aes(color = PC)) + - labs(color = "POSTAL CODES") +struct # Reverse geocoding - reverse <- gisco_addressapi_reverse(x = struct$X[1], y = struct$Y[1]) -glimpse(reverse) +reverse } \dontshow{\}) # examplesIf} } diff --git a/vignettes/africa-1.png b/vignettes/africa-1.png index 1cab61c5..bf36122f 100644 Binary files a/vignettes/africa-1.png and b/vignettes/africa-1.png differ diff --git a/vignettes/country-1.png b/vignettes/country-1.png index ecf20668..5375de2b 100644 Binary files a/vignettes/country-1.png and b/vignettes/country-1.png differ diff --git a/vignettes/giscoR-1.png b/vignettes/giscoR-1.png index 55cc27c1..a5264da6 100644 Binary files a/vignettes/giscoR-1.png and b/vignettes/giscoR-1.png differ