powered by
A function that reads a file line by line
sf_writeLines(text, file, sep = "\n", na_value = "NA", encode_mode = "UTF-8")
A character to write to file
Name of the file to write to
The line separator character(s)
What to write in case of a NA string
"UTF-8" or "byte". If "UTF-8", all strings are re-encoded as UTF-8.
A function for writing text data using `std::ofstream`.
writeLines
if(getRversion() >= "3.5.0") { file <- tempfile() sf_writeLines(letters, file) sf_readLines(file) }
Run the code above in your browser using DataLab