Updated rdhs dependency to 0.8.0
Fixed bug where Sao Tome and Principe couldn't be found in getPR
A number of underlying data sources have been updated. All datasets are now versioned, this is reflected in the get*
functions. We have tried to keep the API changes small so as to minimise breaking your code.
More specifically:
getPR
, listPRPointCountries
, and isAvailable_pr
can now take a version
parameter. These are listed in listPRPointVersions
. If no version is passed, the data for the newest version will be returned.getVecOcc
, listVecOccPointCountries
, and isAvailable_Vec
similarly take a version
parameter. These are listed in listVecOccPointVersions
. If no version is passed, the data for the newest version will be returned.getRaster
and extractRaster
now prefer the new dataset_id
over the deprecated surface
parameter. dataset_id
is included in listRaster
Some more functions have been deprecated
listData
, in favour of the more specific listPRPointCountries
, listVecOccPointCountries
, listRaster
, listShp
listPoints
, in favour of the more specific listPRPointCountries
and listVecOccPointCountries
Removed rgdal
, sp
, raster
packages dependencies and added terra
, sf
, tidyterra
, lifecycle
As a result getShp
will now return sf
objects
Similarly, getRaster
returns SpatRaster
or SpatRasterCollection
Some functions have been deprecated. They will still run in this version, with a warning. Please remove them from your code, they will be completely removed in the future.
as.MAPraster
, as.MAPshp
. They are no longer required for working with autoplot
autoplot_MAPraster
. Use autoplot
directly with the result of getRaster
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.