Downloads data from PaleoClim (http://www.paleoclim.org) and loads it into R
as a SpatRaster object.
Arguments
- period
- Character. Time period to retrieve. 
- resolution
- Character. Resolution to retrieve. 
- region
- SpatExtentobject or object that can be coerced to- SpatExtent(see- terra::ext()), describing the region to be retrieved. If- NULL, defaults to the whole globe.
- as
- Character. - as = "raster"returns a- RasterStackobject (see- raster::stack()) instead of the default raster from the- terrapackage. It is provided for backwards compatibility and will be removed in future versions. Requires the- rasterpackage.
- skip_cache
- Logical. If - TRUE, cached data will be ignored.
- cache_path
- Logical. Path to directory where downloaded files should be saved. Defaults to R's temporary directory. 
- quiet
- Logical. If - TRUE, suppresses messages and download progress information.
Value
SpatRaster object (see terra::rast()) with each bioclimatic variable
as a separate named layer.
Details
See http://www.paleoclim.org for details of the datasets and codings. Data at 30s resolution is only available for 'cur' and 'lgm'.
By default, paleoclim() will read previously downloaded files in R's
temporary directory if available. Use skip_cache = TRUE to override this.
cache_path can also be set to another directory. This can be useful if you
want to reuse downloaded data between sessions.