powered by
Convert line endings in a text file between Dos (CRLF) and Unix (LF) format.
dos2unix(file)unix2dos(file)
unix2dos(file)
a filename.
file is used to open a binary connection to the text file.
file
writeLines is used to apply CRLF or LF line endings.
writeLines
icesTAF-package gives an overview of the package.
icesTAF-package
# NOT RUN { file <- "test.txt" write("123", file) dos2unix(file) file.size(file) unix2dos(file) file.size(file) file.remove(file) # } # NOT RUN { # }
Run the code above in your browser using DataLab