write_lines {inldata} | R Documentation |
Write Lines to a File
Description
Write text lines to a file.
Usage
write_lines(text, path, gz = FALSE)
Arguments
text |
'character' vector. Text to write to file. |
path |
'character' string. Path to the file. |
gz |
'logical' flag.
Whether to compress the file using Gzip.
The |
Value
Invisibly returns the extracted path(s).
Author(s)
J.C. Fisher, U.S. Geological Survey, Idaho Water Science Center
Examples
path <- write_lines(
text = "Test",
path = tempfile(fileext = ".txt"),
gz = TRUE
)
unlink(path)
[Package inldata version 1.2.7 Index]