The text is converted to UTF-8 encoding before writing.
write_lines(text, path, eol = "\n")
The UTF-8 encoded input text (invisibly).
The files are opened in binary mode, so they always use exactly the string
given in eol
as the line separator.
To write a file with windows line endings use write_lines(eol = "\r\n")