View source: R/saveSpatRasterList.R
saveSpatRasterList | R Documentation |
Save List containing SpatRaster objects ( package terra)
saveSpatRasterList(
myList,
filePath = "filepath to save list file to ending in qs"
)
myList |
a list object that may contain SpatRasters |
filePath |
file path to save the list object to ( as a package qs file with extention qs) |
Allows saving and reloading of a list from and R session that contains SpatRasters the function recursively searches for SpatRaster objects and coverts them to "PackedSpatRaster" using terra::wrap() A work around to allow saving of sessions of R containing SpatRasters that can be reloaded ( saving the SpatRaster itself results in a null pointer error)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.