R/cache-helpers.R
prepareOutput.Rd
This is a generic definition that can be extended according to class.
.prepareOutput(object, cacheRepo, ...) # S4 method for Raster .prepareOutput( object, cacheRepo, drv = getOption("reproducible.drv", RSQLite::SQLite()), conn = getOption("reproducible.conn", NULL), ... ) # S4 method for ANY .prepareOutput(object, cacheRepo, ...)
object | Any R object |
---|---|
cacheRepo | A repository used for storing cached objects.
This is optional if |
... | Arguments passed to |
drv | an object that inherits from DBIDriver, or an existing DBIConnection object (in order to clone an existing connection). |
conn | A DBIConnection object, as returned by
|
The object, modified
a <- 1 .prepareOutput(a) # does nothing#> [1] 1b <- "Null" .prepareOutput(b) # converts to NULL#> NULL