| str_read_lines | R Documentation |
str_read_lines() reads a text file in its entirety, converts it to UTF-8,
and splits it at Unicode line boundaries.
str_read_lines(con, encoding = NULL)
con |
A file name or a connection opened in binary mode. |
encoding |
A single string giving the input encoding. |
A character vector with one element per line.
stringi::stri_read_lines() for the underlying implementation.
path <- tempfile()
writeLines(c("first", "second"), path, useBytes = TRUE)
str_read_lines(path, encoding = "UTF-8")
unlink(path)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.