Use an object as external dataset

Usage

use_extdata(..., pkg = ".", compress = "xz", overwrite = FALSE, env = parent.frame())
use_extdata_(..., .dots, pkg = ".", compress = "xz", overwrite = FALSE, env = parent.frame())

Arguments

...
objects to save in name or name = value format
pkg
package description, can be path or package name. See as.package for more information.
compress
a logical specifying whether saving to a named file is to use "gzip" compression, or one of "gzip", "bzip2" or "xz" to indicate the type of compression to be used.
overwrite
overwrite existing files?
env
the environment in which to evaluate the expressions
.dots
named list of objects to save

Description

Call this function to save an object as .rds file in the inst/extdata directory for later retrieval via read_rds or auto_extdata.