Skip to content

Commit

Permalink
Update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
dieghernan committed Jul 4, 2024
1 parent 494ac6d commit 74fd0c4
Show file tree
Hide file tree
Showing 19 changed files with 13 additions and 35 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
3 changes: 2 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# giscoR (development version)

- Use **CRAN** DOI: <https://doi.org/10.32614/CRAN.package.giscoR>.
- `gisco_get_education()`:Fix API entry points.
- `gisco_get_education()`: Fix API entry points.
- Review failing examples.

# giscoR 0.5.0

Expand Down
17 changes: 3 additions & 14 deletions R/gisco_addressapi.R
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -363,8 +363,7 @@ This package is in no way officially related to or endorsed by Eurostat.

## References

<div id="refs" class="references csl-bib-body hanging-indent"
entry-spacing="0">
<div id="refs" class="references csl-bib-body hanging-indent">

<div id="ref-RJ-2017-019" class="csl-entry">

Expand Down
4 changes: 2 additions & 2 deletions codemeta.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
Binary file modified data/gisco_coastallines.rda
Binary file not shown.
Binary file modified data/gisco_countries.rda
Binary file not shown.
Binary file modified data/gisco_countrycode.rda
Binary file not shown.
Binary file modified data/gisco_db.rda
Binary file not shown.
Binary file modified data/gisco_nuts.rda
Binary file not shown.
Binary file modified img/README-example-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified img/README-example-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified img/README-labels-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified img/README-thematic-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion inst/schemaorg.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
{
Expand Down
17 changes: 3 additions & 14 deletions man/gisco_addressapi.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified vignettes/africa-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified vignettes/country-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified vignettes/giscoR-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 74fd0c4

Please sign in to comment.