dos2unix {condor} | R Documentation |
Convert Line Endings
Description
Convert line endings in a text file between Dos (CRLF) and Unix (LF) format.
Usage
dos2unix(file, force = FALSE)
unix2dos(file, force = FALSE)
Arguments
file |
a filename. |
force |
whether to proceed with the conversion when the file is not a standard text file. |
Details
The default value of force = FALSE
is a safety feature that can avoid
corrupting files that are not standard text files, such as binary files. A
standard text file is one that can be read using readLines
without producing warnings.
Value
No return value, called for side effects.
Author(s)
Arni Magnusson.
See Also
condor_submit
calls dos2unix
to convert the line endings
of shell scripts.
condor-package
gives an overview of the package.
Examples
## Not run:
file <- "test.txt"
write("123", file)
dos2unix(file)
file.size(file)
unix2dos(file)
file.size(file)
file.remove(file)
## End(Not run)
[Package condor version 3.0.0 Index]