Skip to content

Commit

Permalink
bump version and modify getboundary vignette to use "country" not "co…
Browse files Browse the repository at this point in the history
…untries" argument
  • Loading branch information
jflowernet committed Jan 10, 2025
1 parent dc0bf29 commit 2813be8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: oceandatr
Type: Package
Title: Ocean Data Access
Version: 0.2.0
Version: 0.2.1
Authors@R: person(given = "Jason", family = "Flower", email = "[email protected]", role = c("aut", "cre"), comment = c(ORCID = "0000-0002-6731-8182"))
Description: For retrieving and gridding ocean related data.
License: GPL (>= 3) + file LICENSE
Expand All @@ -17,7 +17,7 @@ Imports:
NbClust,
graphics,
stats,
spatialgridr (>= 0.0.2.0),
spatialgridr (>= 0.0.2.1),
rlang
Remotes:
github::emlab-ucsb/spatialgridr,
Expand Down
4 changes: 2 additions & 2 deletions vignettes/getboundary.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ If we query France setting `country_type = "country"` we get:


``` r
france <- get_boundary(name = "France", type = "countries", country_type = "country")
france <- get_boundary(name = "France", type = "country", country_type = "country")

plot(sf::st_geometry(france), col = "blue")
plot(rnaturalearth::ne_coastline(scale = 110)["geometry"], lty = 3, add = TRUE)
Expand All @@ -155,7 +155,7 @@ If we use `country_type = "sovereign"`, we also get France's overseas territorie


``` r
france_sov <- get_boundary(name = "France", type = "countries", country_type = "sovereign")
france_sov <- get_boundary(name = "France", type = "country", country_type = "sovereign")

plot(sf::st_geometry(france_sov), col = "blue")
plot(rnaturalearth::ne_coastline(scale = 110)["geometry"], lty = 3, add = TRUE)
Expand Down
4 changes: 2 additions & 2 deletions vignettes/getboundary.Rmd.orig
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ The `rnaturalearth` package [vignette](https://docs.ropensci.org/rnaturalearth/a
If we query France setting `country_type = "country"` we get:

```{r france_country, fig.cap = ""}
france <- get_boundary(name = "France", type = "countries", country_type = "country")
france <- get_boundary(name = "France", type = "country", country_type = "country")

plot(sf::st_geometry(france), col = "blue")
plot(rnaturalearth::ne_coastline(scale = 110)["geometry"], lty = 3, add = TRUE)
Expand All @@ -125,7 +125,7 @@ If we use `country_type = "sovereign"`, we also get France's overseas territorie


```{r france_country_sovereign, fig.cap = ""}
france_sov <- get_boundary(name = "France", type = "countries", country_type = "sovereign")
france_sov <- get_boundary(name = "France", type = "country", country_type = "sovereign")

plot(sf::st_geometry(france_sov), col = "blue")
plot(rnaturalearth::ne_coastline(scale = 110)["geometry"], lty = 3, add = TRUE)
Expand Down

0 comments on commit 2813be8

Please sign in to comment.