Skip to content

Commit

Permalink
Fix issue on examples
Browse files Browse the repository at this point in the history
  • Loading branch information
dieghernan committed Mar 26, 2024
1 parent 7ab2dcb commit c116331
Show file tree
Hide file tree
Showing 15 changed files with 32 additions and 86 deletions.
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# giscoR 0.4.2

- Update of docs to avoid warnings on **CRAN** (#81).
- Rebuild datasets.

# giscoR 0.4.1

Expand Down
44 changes: 8 additions & 36 deletions R/data.R
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,9 @@ NULL
#' }
#' @examples
#'
#' cntry <- gisco_countries
#' GBR <- subset(cntry, ISO3_CODE == "GBR")
#' data("gisco_countries")
#' head(gisco_countries)
#'
#' library(ggplot2)
#'
#' ggplot(GBR) +
#' geom_sf(color = "red3", fill = "blue4") +
#' theme_void()
#' @source
#'
#' ```{r, echo=FALSE, results='asis'}
Expand Down Expand Up @@ -104,27 +99,8 @@ NULL
#' @seealso [gisco_get_coastallines()]
#'
#' @examples
#'
#' coasts <- gisco_coastallines
#'
#' library(ggplot2)
#'
#' ggplot(coasts) +
#' geom_sf(color = "blue", fill = "blue", alpha = 0.2) +
#' # Zoom on Oceania
#' coord_sf(
#' xlim = c(96, 179),
#' ylim = c(-51, 11)
#' ) +
#' theme_minimal() +
#' theme(
#' plot.background = element_rect(
#' fill = "black",
#' color = "black"
#' ),
#' panel.grid = element_blank(),
#' axis.text = element_text(colour = "grey90")
#' )
#' data("gisco_coastallines")
#' head(gisco_coastallines)
NULL

#' All NUTS `POLYGON` object
Expand Down Expand Up @@ -198,14 +174,9 @@ NULL
#'
#' @examples
#'
#' nuts <- gisco_nuts
#'
#' italy <- subset(nuts, CNTR_CODE == "IT" & LEVL_CODE == 3)
#'
#' library(ggplot2)
#' data("gisco_nuts")
#' head(gisco_nuts)
#'
#' ggplot(italy) +
#' geom_sf()
#' @encoding UTF-8
NULL

Expand Down Expand Up @@ -243,7 +214,8 @@ NULL
#'
#' @examples
#'
#' data(gisco_countrycode)
#' data("gisco_countrycode")
#' dplyr::glimpse(gisco_countrycode)
#'
#' @source [countrycode::codelist] **v1.2.0**.
#'
Expand Down
2 changes: 1 addition & 1 deletion codemeta.json
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,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": "1200.79KB",
"fileSize": "1226.2KB",
"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_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.
23 changes: 2 additions & 21 deletions man/gisco_coastallines.Rd

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

9 changes: 2 additions & 7 deletions man/gisco_countries.Rd

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

3 changes: 2 additions & 1 deletion man/gisco_countrycode.Rd

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

9 changes: 2 additions & 7 deletions man/gisco_nuts.Rd

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

25 changes: 13 additions & 12 deletions revdep/README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
# Platform

|field |value |
|:--------|:------------------------------------------------------|
|version |R version 4.3.3 (2024-02-29) |
|os |Ubuntu 22.04.4 LTS |
|system |x86_64, linux-gnu |
|ui |X11 |
|language |(EN) |
|collate |C.UTF-8 |
|ctype |C.UTF-8 |
|tz |UTC |
|date |2024-03-26 |
|pandoc |3.1.11 @ /opt/hostedtoolcache/pandoc/3.1.11/x64/pandoc |
|field |value |
|:--------|:----------------------------------------|
|version |R version 4.3.3 (2024-02-29 ucrt) |
|os |Windows 11 x64 (build 22631) |
|system |x86_64, mingw32 |
|ui |RStudio |
|language |(EN) |
|collate |Spanish_Spain.utf8 |
|ctype |Spanish_Spain.utf8 |
|tz |Europe/Madrid |
|date |2024-03-26 |
|rstudio |2023.12.1+402 Ocean Storm (desktop) |
|pandoc |3.1.12.2 @ C:\PROGRA~1\Pandoc\pandoc.exe |

# Dependencies

Expand Down
2 changes: 1 addition & 1 deletion revdep/cran.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## revdepcheck results

We checked 4 reverse dependencies (0 from CRAN + 4 from Bioconductor), comparing R CMD check results across CRAN and dev versions of this package.
We checked 4 reverse dependencies, comparing R CMD check results across CRAN and dev versions of this package.

* We saw 0 new problems
* We failed to check 0 packages
Expand Down
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.

0 comments on commit c116331

Please sign in to comment.