write_data_to_cache: Write data to the cache directory

View source: R/cache.R

write_data_to_cacheR Documentation

Write data to the cache directory

Description

Write object in a serialised form (RDS) to a cache directory. For the directory used for caching see cache_directory().

Usage

write_data_to_cache(x, filepath, wrap = FALSE, quiet = FALSE)

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::SpatRaster objects)

quiet

Omit message on cache file being written

Value

NULL invisibly


rcrisp documentation built on Aug. 8, 2025, 6:42 p.m.