wc() uses the system command wc. Use at your own risk.

wc(file, flags = c("lines", "words", "bytes"))

Arguments

file

the file name or pattern

flags

the parameters to count, character vector with the long form of the parameters

Value

data.frame with the counts and file names, or NULL if wc is not available on the system.

Note

wc() now is deprecated and will be removed from hyperSpec in the future. Consider using count_lines() instead for line counting.

See also

count_lines()

Author

C. Beleites