Learn R Programming

icesTAF (version 3.6.0)

line.endings: Line Endings

Description

Examine whether file has Dos or Unix line endings.

Usage

line.endings(file)

Value

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

Arguments

file

a filename.

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
if (FALSE) {
file <- system.file(package="icesTAF", "DESCRIPTION")
line.endings(file)
}

Run the code above in your browser using DataLab