Number of lines of a file.
nline(file)
file
Path to file.
The number of lines of the file.
tmpfile <- tempfile() write(1:5, tmpfile, ncolumns = 1) nline(tmpfile)