str_read_lines() reads a text file in its entirety, converts it to UTF-8,
and splits it at Unicode line boundaries.
See also
stringi::stri_read_lines() for the underlying implementation.
Examples
path <- tempfile()
writeLines(c("first", "second"), path, useBytes = TRUE)
str_read_lines(path, encoding = "UTF-8")
#> [1] "first" "second"
unlink(path)