| file_stream {mrgsim.parallel} | R Documentation |
Create a stream of files
Description
Optionally, setup a locker storage space on disk with a specific file
format (e.g. fst or feather).
Usage
file_stream(n, locker = NULL, format = NULL, where = NULL, ...)
Arguments
n |
The number of file names to generate; must be a single numeric value greater than or equal to 1. |
locker |
Passed to |
format |
Passed to |
where |
An optional file path; this is replaced by |
... |
Additional arguments passed to |
Details
Pass locker to set up locker space for saving outputs; this involves
clearing the locker directory (see setup_locker() for details). Passing
locker also sets the path for output files. If you want to set up the path
for output files without setting up locker space, pass where.
See Also
format_stream(), locate_stream(), ext_stream(), new_stream(),
file_set()
Examples
x <- file_stream(3, locker = temp_ds("foo"), format = "fst")
x[[1]]