Skip to contents

Store large objects to disk and return a reference to the object. The written .rds files are not cleaned up automatically. The caller is responsible for removing them, e.g. by storing them below tempdir() or by calling unlink() on the returned path.

Usage

store_large_object(obj, path)

Arguments

obj

(any)
Object to store.

path

(character(1))
Path to an existing directory to store the object in.

Value

list() of class "rush_large_object" with the path of the stored object.

Examples

obj = list(a = 1, b = 2)
rush_large_object = store_large_object(obj, tempdir())