powered by
The format is set on the file objects inside the list so that the file object can be used to call a write method. See write_stream().
write_stream()
format_stream( x, type = c("fst", "feather", "parquet", "qs", "rds"), set_ext = TRUE, warn = FALSE )
x is returned with a new class attribute reflecting the expected output format (fst, feather (arrow), parquet (arrow), qs or rds).
x
fst
feather
parquet
qs
rds
A file_stream object.
file_stream
The file format type; if feather or parquet is chosen, then a check will be made to ensure the arrow package is loaded.
arrow
If TRUE, the existing extension (if it exists) is stripped and a new extension is added based on the value of type.
TRUE
type
If TRUE a warning will be issued in case the output format is set but there is no directory path associated with the file spot in x[[1]].
file
x[[1]]
format_is_set(), locate_stream(), ext_stream(), new_stream(), file_stream(), file_set()
format_is_set()
locate_stream()
ext_stream()
new_stream()
file_stream()
file_set()
fs <- new_stream(2) fs <- format_stream(fs, "fst") fs[[1]] format_is_set(fs[[1]])
Run the code above in your browser using DataLab