powered by
Convert line endings in a text file between Dos (CRLF) and Unix (LF) format.
dos2unix(file)unix2dos(file)
unix2dos(file)
a filename.
line.endings examines line endings.
line.endings
write.taf uses unix2dos to ensure that the resulting files have Dos line endings.
write.taf
unix2dos
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