Method to load rasters from disk or from the internet. By default a
RasterStack is returned but this is only possible When all rasters have the
same spatial extent and resolution.
character vector or dataframe. Layer_codes of the layers to
be loaded or dataframe with a "layer_code" column.
equalarea
logical. If TRUE then layers are loaded with a
Behrmann cylindrical equal-area projection (equalareaproj),
otherwise unprojected (lonlatproj). Default is FALSE.
rasterstack
logical. If TRUE (default value) then the result is
a stack otherwise a list of rasters is returned.
datadir
character. Directory where you want to store the data. If
NULL is passed (default) then the sdmpredictors_datadir
option is read. To set this run options(sdmpredictors_datadir="<your
preferred directory>") in every session or add it to your .RProfile.
if (FALSE) {
# warning using tempdir() implies that data will be downloaded again in the # next R sessionenv <- load_layers("BO_calcite", datadir = tempdir())
}