R/cloc-by-file.r
cloc_by_file.Rd
Count lines of code, comments and whitespace in source files/archives by file
cloc_by_file(source, extract_with = NULL)
source | file, directory or archive to read from (can be a valid URL) |
---|---|
extract_with | passed into |
tibble
Unlike it's cloc()
counterpart, no percentages are reported by this function
# whole dir str(cloc_by_file(system.file("extdata", package="cloc"))) # single file str(cloc_by_file(system.file("extdata", "qrencoder.cpp", package="cloc")))