line.endings: Line Endings

View source: R/line.endings.R

line.endingsR Documentation

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.

TAF-package gives an overview of the package.

Examples

## Not run: 
file <- system.file(package="TAF", "DESCRIPTION")
line.endings(file)

## End(Not run)


TAF documentation built on March 31, 2023, 6:51 p.m.