extensive renaming of resources and indicators. These are handled gracefully until the next release (i.e. a warning is issued and names are replaced):
resources:
treecover2000
->
gfw_treecover
lossyear
-> gfw_lossyear
greenhouse
-> gfw_emissions
traveltime
-> nelson_et_al
nasagrace
-> nasa_grace
mintemperature
->
worldclim_min_temperature
maxtemperature
->
worldclim_max_temperature
precipitation
->
worldclim_precipitation
ecoregions
-> teow
mangrove
-> gmw
srtmdem
-> nasa_srtm
indicators:
treecover
-> treecover_area
emissions
->
treecoverloss_emissions
treeloss
->
treecover_area_and_emissions
chirpsprec
->
precipitation_chirps
accessibility
-> traveltime
popcount
->
population_count
wctmin
->
temperature_min_wc
wctmax
->
temperature_max_wc
wcprec
-> precipitation_wc
gmw
-> mangroves_area
teow
-> ecoregion
init_portfolio()
now sets the testing
attribute to FALSE by default.get_<resource>()
functions now return filenames
early if testing
is set to TRUE.calc_<indicator>()
examples now copy files to the
R temporal directory and are wrapped in try()
to avoid
errors/warnings on CRAN if an internet resource is not available.calc_tri()
and
calc_elevation()
are now disabled on CRAN because of the
responsiveness of CIGAR servers.NEWS.md
file to track changes to the
package.init_portfolio()
is used to initialize a portfolio
object. The input must be an sf object where all geometries are of type
POLYGON
get_resources()
calc_indicators()
write_portfolio()
read_portfolio()
. If users wish to download additional
resources or calculate indicators, init_portfolio()
has to
be called again.