Write object in a serialised form (RDS) to a cache directory. For the
directory used for caching see cache_directory().
Arguments
- x
Object to serialize to a file
- filepath
Path where to serialize x, as a character string
- wrap
Whether the object should be "packed" before serialization (as required by
terra::SpatRasterobjects)- quiet
Omit message on cache file being written
