stri_write_lines | R Documentation |
Writes a text file is such a way that each element of a given character vector becomes a separate text line.
stri_write_lines(
str,
con,
encoding = "UTF-8",
sep = ifelse(.Platform$OS.type == "windows", "\r\n", "\n"),
fname = con
)
str |
character vector with data to write |
con |
name of the output file or a connection object (opened in the binary mode) |
encoding |
output encoding, |
sep |
newline separator |
fname |
[DEPRECATED] alias of |
It is a substitute for the R writeLines
function,
with the ability to easily re-encode the output.
We suggest using the UTF-8 encoding for all text files: thus, it is the default one for the output.
This function returns nothing noteworthy.
Marek Gagolewski and other contributors
The official online manual of stringi at https://stringi.gagolewski.com/
Gagolewski M., stringi: Fast and portable character string processing in R, Journal of Statistical Software 103(2), 2022, 1-59, \Sexpr[results=rd]{tools:::Rd_expr_doi("10.18637/jss.v103.i02")}
Other files:
stri_read_lines()
,
stri_read_raw()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.