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.
wc(file, flags = c("lines", "words", "bytes"))
the file name or pattern
the parameters to count, character vector with the long form of the parameters
data.frame with the counts and file names, or NULL
if wc is
not available on the system.
wc()
now is deprecated and will be removed from hyperSpec and
hySpc.read.txt in the future.
Consider using count_lines()
instead for line counting.
wc()
uses the system command wc
. Use at your own risk.