Skip to content

Releases: prioritizr/wdpar

wdpar 1.3.9

26 Jan 18:50

Choose a tag to compare

  • Update wdpa_read() and wdpa_clean() to be compatible with updates to
    the Protected Planet database. Thanks to Joe Gosling for providing detailed
    information on the database changes.
  • Update wdpa_clean() so that it shows clearer progress messages for erasing
    spatial overlaps, throws a warning if attempting to erase overlaps from
    particularly large datasets, trims white space characters from all
    fields containing character values, and can optionally skip steps for
    repairing geometries if specified by the user (per the new
    repair_geometries parameter) (#95). Thanks to Alexandre Courtiol
    (@courtiol) for feature suggestion.
  • Update vignette. Thanks to Alexandre Courtiol (@courtiol) for code review.
  • Update wdpa_read() to use the archive package for unzipping files. This
    is needed to ensure compatibility with Windows operating systems, because the
    built-in unzip() function is not robust enough against invalid characters.
    Thanks to Aharon Fleury for bug report.
  • Update wdpa_fetch() documentation with information about another misleading
    error message that is not a real error (#90). Thanks to Evan Muise (@emuise)
    for bug report.
  • Update st_repair_geometry() to specify correct installation instructions
    for the prepr package in the error message.
  • Update st_repair_geometry() documentation to specify correct installation
    instructions for the prepr package (#89). Thanks to Jason Everett
    (@jaseeverett) for bug report.
  • Update wdpa_url() to provide correctly formatted error message when
    it can't find matching CSS queries.
  • Update wdpa_read() so that it can import country-specific data in
    shapefile format that have been manually downloaded from ProtectedPlanet
    (#87). Thanks to Florent Bédécarrats (@fBedecarrats) for bug report.
  • Minor improvements to documentation.

wdpar 1.3.7

21 Sep 20:26

Choose a tag to compare

  • Fix aliasing for package manual entry (#71).
  • Fix issue with st_erase_overlaps() not correctly removing overlaps when a protected area are completely contained within another (#73).

wdpar 1.3.5

08 Aug 23:26

Choose a tag to compare

  • CRAN release.
  • Fix compatibility issues with Protected Planet (#69).
  • Update wdpa_clean() to be more robust (#68).
  • Remove sp package as dependency.

wdpar 1.3.4

28 Feb 21:33
d4c52e4

Choose a tag to compare

  • CRAN release.
  • Update citation format.
  • Fix broken URL in vignette.
  • Fix badges in README.
  • Update citation information with journal article.
  • Fix tests when PhatomJS not installed.
  • Fix broken URL in vignette.
  • Improve error message for wdpa_fetch() when PhantomJS is not installed (#63).
  • Add URLs to README for citations (#58).
  • Update wdpa_fetch() documentation to provide information on out of date warnings (#59).
  • Update wdpa_fetch() warnings to be more descriptive and use the cli package for consistent alert messages.
  • Update paper for JOSS submission (#53, #54, #62).
  • Update vignette with new section on local scale analyses (#53).
  • Update wdpa_fetch() function to use the webdriver package for obtaining data
    (replacing Rselenium package as a dependency) (#63).
  • Update st_repair_geometry() to be more robust.
  • Fix failing tests for st_repair_geometry() function.
  • Update documentation for wdpa_clean() function.
  • Fix broken URL in vignette.

wdpar 1.3.3.2

13 Oct 18:37

Choose a tag to compare

wdpar 1.3.3.2 Pre-release
Pre-release

Preliminary release for JOSS.

wdpar 1.3.3

09 Jul 00:00

Choose a tag to compare

  • Reduce test timings.
  • Fix compatibility with GEOS (version 3.11.0) (#50, #51).
  • Fix broken URLs in documentation.
  • Fix typos in documentation, add JOSS paper, and add contributing guide.
  • Reduce false-negative rate when checking for available internet connection (#10).
  • Select a random port for the web driver (#41).
  • Make web driver clean up more robust (#41).

wdpar 1.3.2

05 Dec 23:26

Choose a tag to compare

  • Update read_sf_n to import data faster.
  • Remove withr R package from DESCRIPTION because it is not used.
  • Update wdpa_clean to format the PA_DEF column to indicate if each area is a protected area (per IUCN and CBD protected area definitions) or an other effective area-based conservation measure (OECM).
  • Update documentation to make it clear that data obtained from Protected Planet include both the World Database on Protected Areas (WDPA) and the World Database on Other Effective Area-Based Conservation Measures (WDOECM).
  • Update citation information to follow recommended citations for the World Database on Protected Areas (WDPA) and the World Database on Other Effective Area-Based Conservation Measures (WDOECM).
  • Update URLs to pass CRAN checks.
  • Update wdpa_fetch with new check_version argument to specify if the version of cached data should be checked against the latest version available online.
  • Update wdpa_clean to not throw an unnecessary and confusing warning message when attempting to clean data that do not contain any valid polygon geometries.
  • 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.
  • 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.
  • Update wdpa_clean to provide better information when cleaning data.
  • Update documentation to provide guidelines for processing global dataset.
  • New wdpa_dissolve function to dissolve geometries together (#22).
  • Fix tests that fail package checks given only strict dependencies.
  • Update citation information in README and vignette.
  • Update wdpa_url function to be compatible with changes on https://www.protectedplanet.net/en for downloading country-level datasets.

wdpar 1.3.1

18 Oct 00:18

Choose a tag to compare

v1.3.1

fix typo in cran comments