dim_file {mmapcharr} | R Documentation |
Number of lines and columns of file (and extra 'return' characters).
dim_file(file)
file |
Path to file. |
The number of lines and columns of file (and extra 'return' characters).
tmpfile <- tempfile()
write(0:9, tmpfile, ncolumns = 2)
dim_file(tmpfile)