Find the total number of lines of R code
Details
Tries to read each file in the directory that ends in .R or .r and sums together. Files that fail to read are not counted.
Examples
# \donttest{
lines_of_r_code(system.file())
#> [1] 292
lines_of_r_code(system.file(), skip_empty = FALSE)
#> [1] 376
# }