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