version_locker {mrgsim.parallel} | R Documentation |
Version locker contents
Description
Version locker contents
Usage
version_locker(where, version = "save", overwrite = FALSE, noreset = FALSE)
Arguments
where |
The locker location. |
version |
A tag to be appended to |
overwrite |
If |
noreset |
If |
Value
A logical value indicating whether or not all files were successfully copied to the backup, invisibly.
See Also
reset_locker()
, noreset_locker()
, setup_locker()
Examples
locker <- file.path(tempdir(), "version-locker-example")
if(dir.exists(locker)) unlink(locker, recursive = TRUE)
x <- new_stream(1, locker = locker)
cat("test", file = file.path(locker, "1-1"))
dir.exists(locker)
list.files(locker, all.files = TRUE)
y <- version_locker(locker, version = "y")
y
list.files(y, all.files = TRUE)
[Package mrgsim.parallel version 0.2.1 Index]