clearCache,simList-method {SpaDES.core} | R Documentation |
clearCache
for simList
objects
Description
This will take the cachePath(object)
and pass
Usage
## S4 method for signature 'simList'
clearCache(
x,
userTags = character(),
after = NULL,
before = NULL,
fun = NULL,
cacheId = NULL,
ask = getOption("reproducible.ask"),
useCloud = FALSE,
cloudFolderID = getOption("reproducible.cloudFolderID", NULL),
drv = getDrv(getOption("reproducible.drv", NULL)),
conn = getOption("reproducible.conn", NULL),
verbose = getOption("reproducible.verbose"),
...
)
## S4 method for signature 'simList'
showCache(
x,
userTags = character(),
after = NULL,
before = NULL,
fun = NULL,
cacheId = NULL,
drv = getDrv(getOption("reproducible.drv", NULL)),
conn = getOption("reproducible.conn", NULL),
verbose = getOption("reproducible.verbose"),
...
)
## S4 method for signature 'simList'
keepCache(
x,
userTags = character(),
after = NULL,
before = NULL,
ask = getOption("reproducible.ask"),
drv = getDrv(getOption("reproducible.drv", NULL)),
conn = getOption("reproducible.conn", NULL),
verbose = getOption("reproducible.verbose"),
...
)
Arguments
x |
A simList or a directory containing a valid Cache repository. Note:
For compatibility with |
userTags |
Character vector. If used, this will be used in place of the
|
after |
A time (POSIX, character understandable by data.table). Objects cached after this time will be shown or deleted. |
before |
A time (POSIX, character understandable by data.table). Objects cached before this time will be shown or deleted. |
fun |
An optional character vector describing the function name to extract. Only functions with this/these functions will be returned. |
cacheId |
An optional character vector describing the |
ask |
Logical. If |
useCloud |
Logical. If |
cloudFolderID |
A googledrive dribble of a folder, e.g., using |
drv |
an object that inherits from |
conn |
A |
verbose |
Numeric, -1 silent (where possible), 0 being very quiet,
1 showing more messaging, 2 being more messaging, etc.
Default is 1. Above 3 will output much more information about the internals of
Caching, which may help diagnose Caching challenges. Can set globally with an
option, e.g., |
... |
Other arguments. Can be in the form of |
Value
A data.table
object showing the subset of items in the cache, located at cachePath
of the sim
object, if sim
is provided, or located in cachePath
.
For clearCache
(invoked for its side effect of clearing objects matching userTags
, or those
between after
or before
), the returned data.table
shows the removed items (invisibly).