Learn R Programming

mmapcharr (version 0.3.0)

nline: Number of lines

Description

Number of lines of a file.

Usage

nline(file)

Arguments

file

Path to file.

Value

The number of lines of the file.

Examples

Run this code
# NOT RUN {
tmpfile <- tempfile()
write(1:5, tmpfile, ncolumns = 1)
nline(tmpfile)
# }

Run the code above in your browser using DataLab