These data input related functions are deprecated and they will be removed in the next release of hyperspec package. Now functions in package hySpc.read.txt (link) should be used as the alternatives.

count_lines(file, chunksize = 10000)

Arguments

file

the file name or connection

chunksize

file is read in chunks of chunksize lines.

Value

number of lines in file

Author

C. Beleites