- Update
terra_gdal_rasterize()
to remove theverbose
parameter. This is because the underlyinggdalUtilities::gdal_rasterize()
function no longer supports theq
parameter with recent GDAL versions (i.e., 3.9.3+). - Fix URLs.
- Update
create_spp_info_data()
to make data cleaning functionality more robust for the BirdLife species' range dataset. - Update built-in helper script for processing area of habitat data to
include (i) mammal species with terrestrial and freshwater distributions
and (ii) mammal species with terrestrial and marine distributions
(see
inst/scripts/aoh-data.R
) - New built-in helper script to download all species identifiers from the
IUCN Red List (see
inst/scripts/iucn-species-list.R
)
- Update
read_spp_range_data()
andcreate_spp_info_data()
to fix incompatibility issue with latest version of the BirdLife species range dataset (#57). Thanks to Jianqiao Zhao for the bug report. - Update
create_spp_aoh_data()
andcreate_spp_frc_data()
so that they provide a correct error message when the argument tox
does not contain an"id_no"
column.
- Fix bug in
create_spp_info_data()
in assigning habitat types for resident distributions of migratory and non-migratory species. This bug meant that (i) habitat types for resident distributions of migratory species would include those exclusively affiliated with the species' passage distributions and (ii) habitat types for resident distributions of non-migratory species would not include those exclusively affiliated with the species' passage distributions. Thanks to Jianqiao Zhao for bug report. - Update built-in testing data to include multiple migratory species.
- Update internal R script for creating test dataset
(i.e.,
inst/scripts/test-data.R
) to be compatible with current version of the package. - Update
is_gdal_calc_available()
to be more robust. - Fix URLs.
- Fix bug in
create_spp_info_data()
so that the IUCN Red List API key can be specified using thekey
parameter. - Fix aliasing for package manual entry.
- Update prepr and ggmap package dependencies.
- Remove rgdal package dependency.
- Updates URLs.
- Update functions for downloading preprocessed data from Zenodo.
- Update
plot_spp_aoh_data()
andplot_spp_frc_data()
to be compatible with changes to the ggmap package for creating maps with a basemap.
- Fix failing tests on continuous integration services (due to issues unzipping test files).
- Update
read_spp_range_data()
to that it can import data from a zip file that contains multiple ESRI Shapefiles (e.g., the 2022-2 IUCN Red List release for reptile data).
- Update
create_spp_aoh_data()
andcreate_spp_frc_data()
to have a newrasterize_touches
parameter (#48). This parameter can be toggled so that when rasterizing species' range data, raster cells that partially overlap with any part of the species' range are treated as covered by the species' range. This functionality may be especially useful for species with very small geographic ranges. - Fix bug in
create_spp_aoh_data()
andcreate_spp_frc_data()
that causes Python errors when using the GDAL engine and ahabitat_data
orelevation_data
raster that is stored only in memory (and not associated with any file on disk). - Fix bug in
create_spp_aoh_data()
andcreate_spp_frc_data()
that causes the GRASS engine to throws errors. - Update package dependency versions.
- Fix compatibility with updates to
terra::compareGeom()
.
- Update data cleaning procedures for
create_spp_info_data()
so that a useful error message is provided if all species are excluded.
- Fix bug in
create_spp_aoh_data()
when using GRASS engine that caused the function to throw an error because it failed to initialize a new GRASS project correctly. - Update
get_spp_habitat_data()
,get_spp_summary_data()
,get_spp_threat_data()
,get_spp_summary_data()
functions so that they do not throw warnings related to the dplyr package.
- New
iucn_threat_data
built-in dataset denoting threat information on the IUCN Red List Threat Classification. - Fix compatibility of tests with updates to IUCN Red List.
- Fix compatibility with tidyselect package (>= 1.2.0).
- Fix badges in README.
- The rgrass package is now used for GRASS functionality (due to upcoming deprecation of the rgrass7 package).
- Update
create_spp_info_data()
so that data cleaning procedures replace 0 m lower elevation limits with 500 m (#39). This is because the IUCN Red List assigns lower limit values of 0 m for many species that have parts of their distribution in areas below sea level. - Update
create_spp_info_data()
so that data can be processed using EPSG:4326 coordinate reference system. Instead of throwing an error, the function will now display an alert. - Fix bug in
create_spp_aoh_data()
with theterra
engine that caused negative elevations to be rounded to zero.
- Initial stable release.
- Add tests for
st_repair_geometry()
. - Add URLs to citations in README.
- Update references in documentation.
- Fix spelling and formatting mistakes in vignette.
- Update
st_repair_geometry()
to be more robust to geometry issues.
- Update documentation for the
create_spp_info_data()
function. - Update
create_spp_info_data()
function so that the methodology used to correct errors in species' elevational limits now follows best practices. This behavior is controlled using theadjust_elevational_limits
. If elevational limits should not be altered during processing, this can be specified by settingadjust_elevational_limits = FALSE
. - Update
create_spp_info_data()
function so that IUCN habitat codes are adjusted to be assigned based on guidelines for the identification of Key Biodiversity Areas. Broadly speaking, these guidelines assign IUCN habitat codes to species' distributions in a manner to minimize omission errors. This behavior is controlled by theadjust_habitat_codes
parameter. If habitat codes should be assigned based on exact matches (e.g., Resident distributions should only be associated with habitat codes described for Resident distributions), this can be specified by settingadjust_habitat_codes = FALSE
. - Update
create_spp_info_data()
,create_spp_aoh_data()
,create_spp_frc_data()
, andcalc_spp_frc_data()
functions so that the returnedsf::st_sf()
object now contains an additionalmigratory
column indicating if the species was processed as a migratory species or not. - Update
create_spp_info_data()
,create_spp_aoh_data()
,create_spp_frc_data()
, andcalc_spp_frc_data()
functions so that the order of the columns now places the IUCN threat status information (i.e.,"category"
column) closer to the start of the table. - Update tests to be robust to Zenodo website outages.
- Update
st_repair_geometry()
to avoid unneeded geometry duplication. This reduces memory requirements forcrate_spp_info_data()
.
- Fix issues with using GDAL engine for processing data on Windows. Specifically, the package will now correctly work with the GDAL Python bindings that are installed as part of the OSGeo4W software (#32).
- Fix issues where functions for downloading datasets would fail to load data from cache, and needlessly re-download data.
- Fix issue where attempting to download data or query data version numbers would throw an error due to errors with the Zenodo API.
- Suppress meaningless warnings triggered for GRASS on macOS.
- Increase version requirement for terra package.
- Fix IUCN Red List API tests.
- Improve test coverage.
- Convenience functions for applying GDAL commands to terra package objects
are now exported. These functions include
terra_gdal_calc()
,terra_gdal_crop()
,terra_gdal_project()
, andterra_gdal_rasterize()
. - Fix bug in
terra_gdal_project()
.
- Initial developmental release.
- Initial work on developing package.