write_data_to_cache {rcrisp}R 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


[Package rcrisp version 0.1.4 Index]