Learn R Programming

icesTAF (version 3.1-1)

line.endings: Line Endings

Description

Examine whether file has Dos or Unix line endings.

Usage

line.endings(file)

Arguments

file

a filename.

Value

String indicating the line endings: "Dos" or "Unix".

See Also

file.encoding examines the encoding of a file.

dos2unix and unix2dos convert line endings.

icesTAF-package gives an overview of the package.

Examples

Run this code
# NOT RUN {
file <- system.file(package="icesTAF", "DESCRIPTION")
line.endings(file)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab