diff --git a/DESCRIPTION b/DESCRIPTION
index b2ba100..23dcd65 100644
--- a/DESCRIPTION
+++ b/DESCRIPTION
@@ -1,6 +1,6 @@
Package: wdpar
Type: Package
-Version: 1.3.7
+Version: 1.3.7.1
Title: Interface to the World Database on Protected Areas
Description: Fetch and clean data from the World Database on Protected
Areas (WDPA) and the World Database on Other Effective Area-Based
diff --git a/NEWS.md b/NEWS.md
index fc83742..b946bc3 100644
--- a/NEWS.md
+++ b/NEWS.md
@@ -1,3 +1,7 @@
+# wdpar 1.3.7.1
+
+- Update tests to accommodate corrupted data from Protected Planet.
+
# wdpar 1.3.7
- CRAN release.
diff --git a/docs/404.html b/docs/404.html
index 1d6facc..0f54852 100644
--- a/docs/404.html
+++ b/docs/404.html
@@ -32,7 +32,7 @@
wdpar
- 1.3.7
+ 1.3.7.1
diff --git a/docs/CONTRIBUTING.html b/docs/CONTRIBUTING.html
index f1cae99..89c9696 100644
--- a/docs/CONTRIBUTING.html
+++ b/docs/CONTRIBUTING.html
@@ -17,7 +17,7 @@
wdpar
- 1.3.7
+ 1.3.7.1
diff --git a/docs/LICENSE-text.html b/docs/LICENSE-text.html
index e24ce4c..9751a36 100644
--- a/docs/LICENSE-text.html
+++ b/docs/LICENSE-text.html
@@ -17,7 +17,7 @@
wdpar
- 1.3.7
+ 1.3.7.1
diff --git a/docs/articles/index.html b/docs/articles/index.html
index bef9372..ddae59b 100644
--- a/docs/articles/index.html
+++ b/docs/articles/index.html
@@ -17,7 +17,7 @@
wdpar
- 1.3.7
+ 1.3.7.1
diff --git a/docs/articles/wdpar.html b/docs/articles/wdpar.html
index b913157..7a818f1 100644
--- a/docs/articles/wdpar.html
+++ b/docs/articles/wdpar.html
@@ -33,7 +33,7 @@
wdpar
- 1.3.7
+ 1.3.7.1
@@ -72,7 +72,7 @@
wdpar: Interface to the World Database on Protected Areas
Jeffrey O. Hanson
- 2023-09-21
+ 2023-11-01
Source: vignettes/wdpar.Rmd
wdpar.Rmd
diff --git a/docs/articles/wdpar_files/figure-html/unnamed-chunk-13-1.png b/docs/articles/wdpar_files/figure-html/unnamed-chunk-13-1.png
index eb04074..f76124d 100644
Binary files a/docs/articles/wdpar_files/figure-html/unnamed-chunk-13-1.png and b/docs/articles/wdpar_files/figure-html/unnamed-chunk-13-1.png differ
diff --git a/docs/articles/wdpar_files/figure-html/unnamed-chunk-9-1.png b/docs/articles/wdpar_files/figure-html/unnamed-chunk-9-1.png
index 6dd4259..de8ef39 100644
Binary files a/docs/articles/wdpar_files/figure-html/unnamed-chunk-9-1.png and b/docs/articles/wdpar_files/figure-html/unnamed-chunk-9-1.png differ
diff --git a/docs/authors.html b/docs/authors.html
index 77c0c64..ca1d1d8 100644
--- a/docs/authors.html
+++ b/docs/authors.html
@@ -17,7 +17,7 @@
wdpar
- 1.3.7
+ 1.3.7.1
diff --git a/docs/index.html b/docs/index.html
index 57b9ac0..f219119 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -39,7 +39,7 @@
wdpar
- 1.3.7
+ 1.3.7.1
diff --git a/docs/news/index.html b/docs/news/index.html
index 61edf90..d067fdc 100644
--- a/docs/news/index.html
+++ b/docs/news/index.html
@@ -17,7 +17,7 @@
wdpar
- 1.3.7
+ 1.3.7.1
@@ -51,7 +51,10 @@ Changelog
-
+
+
- Update tests to accommodate corrupted data from Protected Planet.
+
@@ -149,7 +152,7 @@
- Fix bug in
wdpa_read
to ensure that all data from global database. This is a bug previously meant that protected areas denoted with polygon geometry data were not imported. It is strongly recommended that users double check processed versions of the global database to verify correctness.
- Add example script for downloading and cleaning data (see
inst/scripts/global-example-script.R
)
-- New
st_repair_geometry
function to repair geometry using a combination of sf::st_make_valid
and prepr::st_prepair
. This function is now used by the wdpa_clean
function to augment data cleaning procedures.
+- New
st_repair_geometry
function to repair geometry using a combination of sf::st_make_valid
and prepr::st_prepair
. This function is now used by the wdpa_clean
function to augment data cleaning procedures.
- Update
wdpa_url
and wdpa_fetch
to have a page_wait
parameter to specify the wait time for loading web pages when finding the download URLs for datasets (#39).
- Add dplyr package to Suggests because it is used in an example.
diff --git a/docs/pkgdown.yml b/docs/pkgdown.yml
index 26dffb0..6d24ea6 100644
--- a/docs/pkgdown.yml
+++ b/docs/pkgdown.yml
@@ -3,5 +3,5 @@ pkgdown: 2.0.7
pkgdown_sha: ~
articles:
wdpar: wdpar.html
-last_built: 2023-09-21T01:39Z
+last_built: 2023-11-01T02:51Z
diff --git a/docs/reference/index.html b/docs/reference/index.html
index 116e631..ddd3a77 100644
--- a/docs/reference/index.html
+++ b/docs/reference/index.html
@@ -17,7 +17,7 @@
wdpar
- 1.3.7
+ 1.3.7.1
diff --git a/docs/reference/st_erase_overlaps.html b/docs/reference/st_erase_overlaps.html
index 19978e9..cd3b7d5 100644
--- a/docs/reference/st_erase_overlaps.html
+++ b/docs/reference/st_erase_overlaps.html
@@ -17,7 +17,7 @@
wdpar
- 1.3.7
+ 1.3.7.1
diff --git a/docs/reference/st_repair_geometry.html b/docs/reference/st_repair_geometry.html
index eb8911f..7946a01 100644
--- a/docs/reference/st_repair_geometry.html
+++ b/docs/reference/st_repair_geometry.html
@@ -17,7 +17,7 @@
wdpar
- 1.3.7
+ 1.3.7.1
diff --git a/docs/reference/wdpa_clean.html b/docs/reference/wdpa_clean.html
index 501bea8..846a8c5 100644
--- a/docs/reference/wdpa_clean.html
+++ b/docs/reference/wdpa_clean.html
@@ -25,7 +25,7 @@
wdpar
- 1.3.7
+ 1.3.7.1
diff --git a/docs/reference/wdpa_dissolve.html b/docs/reference/wdpa_dissolve.html
index c50fa61..e632380 100644
--- a/docs/reference/wdpa_dissolve.html
+++ b/docs/reference/wdpa_dissolve.html
@@ -18,7 +18,7 @@
wdpar
- 1.3.7
+ 1.3.7.1
diff --git a/docs/reference/wdpa_fetch.html b/docs/reference/wdpa_fetch.html
index 58d065c..e2ea4c1 100644
--- a/docs/reference/wdpa_fetch.html
+++ b/docs/reference/wdpa_fetch.html
@@ -22,7 +22,7 @@
wdpar
- 1.3.7
+ 1.3.7.1
diff --git a/docs/reference/wdpa_latest_version.html b/docs/reference/wdpa_latest_version.html
index 0f169d9..647576c 100644
--- a/docs/reference/wdpa_latest_version.html
+++ b/docs/reference/wdpa_latest_version.html
@@ -22,7 +22,7 @@
wdpar
- 1.3.7
+ 1.3.7.1
@@ -87,7 +87,7 @@ Examples
# \dontrun{
# find the latest version
wdpa_latest_version()
-#> [1] "Sep2023"
+#> [1] "Oct2023"
# }
diff --git a/docs/reference/wdpa_read.html b/docs/reference/wdpa_read.html
index e7ec706..a50667f 100644
--- a/docs/reference/wdpa_read.html
+++ b/docs/reference/wdpa_read.html
@@ -22,7 +22,7 @@
wdpar
- 1.3.7
+ 1.3.7.1
diff --git a/docs/reference/wdpa_url.html b/docs/reference/wdpa_url.html
index 4a68874..9121ce9 100644
--- a/docs/reference/wdpa_url.html
+++ b/docs/reference/wdpa_url.html
@@ -23,7 +23,7 @@
wdpar
- 1.3.7
+ 1.3.7.1
@@ -119,12 +119,12 @@ Examples
# obtain url for New Zealand data
nzl_url <- wdpa_url("New Zealand", wait = TRUE)
print(nzl_url)
-#> [1] "https://d1gam3xoknrgr2.cloudfront.net/current/WDPA_WDOECM_Sep2023_Public_NZL_shp.zip"
+#> [1] "https://d1gam3xoknrgr2.cloudfront.net/current/WDPA_WDOECM_Oct2023_Public_NZL_shp.zip"
# obtain url for New Zealand data using its ISO3 code
nzl_url <- wdpa_url("NZL", wait = TRUE)
print(nzl_url)
-#> [1] "https://d1gam3xoknrgr2.cloudfront.net/current/WDPA_WDOECM_Sep2023_Public_NZL_shp.zip"
+#> [1] "https://d1gam3xoknrgr2.cloudfront.net/current/WDPA_WDOECM_Oct2023_Public_NZL_shp.zip"
# obtain url for global data
global_url <- wdpa_url("global")
diff --git a/docs/reference/wdpar.html b/docs/reference/wdpar.html
index 0b10761..bb62b37 100644
--- a/docs/reference/wdpar.html
+++ b/docs/reference/wdpar.html
@@ -29,7 +29,7 @@
wdpar
- 1.3.7
+ 1.3.7.1
diff --git a/inst/doc/wdpar.html b/inst/doc/wdpar.html
index 6975927..09cb2dd 100644
--- a/inst/doc/wdpar.html
+++ b/inst/doc/wdpar.html
@@ -12,7 +12,7 @@
-
+
wdpar: Interface to the World Database on Protected Areas
@@ -149,7 +149,7 @@
wdpar: Interface to the World Database on Protected Areas
Jeffrey O. Hanson
-2023-09-21
+2023-11-01
@@ -258,7 +258,7 @@ Tutorial
ggmap(bg) +
geom_sf(data = mlt_pa_data, fill = "#31A35480", inherit.aes = FALSE) +
theme(axis.title = element_blank())
-
+
We can also create a histogram showing the year when each protected area was established.
hist(
mlt_pa_data$STATUS_YR,
@@ -312,7 +312,7 @@ Tutorial
ggmap(bg) +
geom_sf(aes(fill = IUCN_CAT), data = mlt_pa_data, inherit.aes = FALSE) +
theme(axis.title = element_blank(), legend.position = "bottom")
-
+
Recommended practices for large datasets
diff --git a/tests/testthat/test_wdpa_clean.R b/tests/testthat/test_wdpa_clean.R
index d30d07c..5a863c2 100644
--- a/tests/testthat/test_wdpa_clean.R
+++ b/tests/testthat/test_wdpa_clean.R
@@ -238,11 +238,7 @@ test_that("protected areas that massively increase in size without prepr", {
skip_on_github_workflow("macOS")
# fetch data
ids <- c(23177, 12352, 555705343, 555705341, 555721495)
- countries <- c("MAR", "DZA")
- x <- suppressWarnings(
- lapply(countries, wdpa_fetch, wait = TRUE, check_version = FALSE)
- )
- x <- dplyr::bind_rows(x)
+ x <- wdpa_fetch("DZA", wait = TRUE, check_version = FALSE)
x <- x[x$WDPAID %in% ids, , drop = FALSE]
# clean data
y <- wdpa_clean(x, erase_overlaps = FALSE)