nline: Number of lines

View source: R/file-dim.R

nlineR Documentation

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

tmpfile <- tempfile()
write(1:5, tmpfile, ncolumns = 1)
nline(tmpfile)

mmapcharr documentation built on Nov. 28, 2025, 9:07 a.m.