cloc_by_file | R Documentation |
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")))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.