clearCache
for simList
objectsThis will take the cachePath(object)
and pass
This will take the cachePath(object)
and pass
This will take the cachePath(object)
and pass
# S4 method for simList
clearCache(
x,
userTags = character(),
after,
before,
ask = getOption("reproducible.ask"),
useCloud = FALSE,
cloudFolderID = getOption("reproducible.cloudFolderID", NULL),
...
)# S4 method for simList
showCache(x, userTags = character(), after, before, ...)
# S4 method for simList
keepCache(
x,
userTags = character(),
after,
before,
ask = getOption("reproducible.ask"),
...
)
A simList or a directory containing a valid archivist repository. Note:
For compatibility with Cache
argument, cacheRepo
can also be
used instead of x
, though x
will take precedence.
Character vector. If used, this will be used in place of the
after
and before
.
Specifying one or more userTag
here will clear all
objects that match those tags.
Matching is via regular expression, meaning partial matches
will work unless strict beginning (^) and end ($) of string
characters are used.
Matching will be against any of the 3 columns returned by showCache()
,
i.e., artifact
, tagValue
or tagName
.
Also, length userTags
> 1, then matching is by `and`.
For `or` matching, use |
in a single character string.
See examples.
A time (POSIX, character understandable by data.table). Objects cached after this time will be shown or deleted.
A time (POSIX, character understandable by data.table). Objects cached before this time will be shown or deleted.
Logical. If FALSE
, then it will not ask to confirm deletions using
clearCache
or keepCache
. Default is TRUE
Logical. If TRUE
, then every object that is deleted locally will
also be deleted in the cloudFolderID
, if it is non-NULL
A googledrive id of a folder, e.g., using drive_mkdir()
.
If left as NULL
, the function will create a cloud folder with a warning.
The warning will have the cloudFolderID
that should be used in subsequent calls.
It will also be added to options("reproducible.cloudFolderID")
,
but this will not persist across sessions.
Other arguments. Currently, regexp
, a logical, can be provided.
This must be TRUE
if the use is passing a regular expression.
Otherwise, userTags
will need to be exact matches. Default is
missing, which is the same as TRUE
. If there are errors due
to regular expression problem, try FALSE
. For cc
, it is
passed to clearCache
, e.g., ask
, userTags