dos2unix: Convert Line Endings

Description Usage Arguments Value See Also Examples

View source: R/dos2unix.R

Description

Convert line endings in a text file between Dos (CRLF) and Unix (LF) format.

Usage

1
2
3

Arguments

file

a filename.

Value

No return value, called for side effects.

See Also

line.endings examines line endings.

write.taf uses unix2dos to ensure that the resulting files have Dos line endings.

TAF-package gives an overview of the package.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 
file <- "test.txt"
write("123", file)

dos2unix(file)
file.size(file)

unix2dos(file)
file.size(file)

file.remove(file)

## End(Not run)

TAF documentation built on April 7, 2021, 5:06 p.m.