cloc_pkg.Rd
Think of this as cloc()
with saner defaults for packages. Skips common
IDE tempdirs, .git
, inst
, man
.
cloc_pkg(source = ".", extract_with = NULL)
source | file, directory or archive to read from (can be a valid URL) |
---|---|
extract_with | passed into |
data frame (tibble)
#> # A tibble: 2 x 10 #> source language file_count file_count_pct loc loc_pct blank_lines #> <chr> <chr> <int> <dbl> <int> <dbl> <int> #> 1 extda… C++ 1 0.5 142 0.507 41 #> 2 extda… R 1 0.5 138 0.493 24 #> # … with 3 more variables: blank_line_pct <dbl>, comment_lines <int>, #> # comment_line_pct <dbl>#> # A tibble: 1 x 10 #> source language file_count file_count_pct loc loc_pct blank_lines #> <chr> <chr> <int> <dbl> <int> <dbl> <int> #> 1 qrenc… C++ 1 1 142 1 41 #> # … with 3 more variables: blank_line_pct <dbl>, comment_lines <int>, #> # comment_line_pct <dbl># requires a network connection therefore is set for you to run it manually# NOT RUN { # from a url cloc("https://rud.is/dl/cloc-1.74.tar.gz") # }