write_lines | R Documentation |
Write text lines to a file.
write_lines(text, path, gz = FALSE)
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 |
Invisibly returns the extracted path(s).
J.C. Fisher, U.S. Geological Survey, Idaho Water Science Center
path <- write_lines(
text = "Test",
path = tempfile(fileext = ".txt"),
gz = TRUE
)
unlink(path)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.