locate_stream {mrgsim.parallel} | R Documentation |
Set or change the directory for file_stream objects
Description
Add or update the directory location for items in a file_stream
object.
If a directory path already exists, it is removed first.
Usage
locate_stream(x, where, initialize = FALSE)
Arguments
x |
A |
where |
The new location. |
initialize |
If |
Details
When initialize
is set to TRUE
, the locker space is initialized or
reset. In order to initialize, where
must not exist or it must have been
previously set up as locker space. See setup_locker()
for details.
See Also
format_stream()
, ext_stream()
, new_stream()
, file_stream()
,
file_set()
Examples
x <- new_stream(5)
x <- locate_stream(x, file.path(tempdir(), "foo"))
x[[1]]$file
[Package mrgsim.parallel version 0.2.1 Index]