count_directory_lines: Count the lines of all scripts inside a directory

Description Usage Arguments Details

View source: R/count_directory_lines.R

Description

Count the lines of all scripts inside a directory.

Usage

1
2
count_directory_lines(directory, recursive = TRUE, output = c("sum",
  "separated"), remove = c("none", "comments", "roxygen"))

Arguments

directory

A path to the directory containing the R scripts.

recursive

If TRUE, subdirectories are recursively searched for R scripts.

output

If "sum", calculate the sum of all lines; if "separated", show number of lines for each individual script.

remove

If "comments", all lines starting with "#" don't add to the count. If "roxygen", all lines starting with "#'" dont' add to the count.

Details

If used with comment = "roxygen" the results are comparable to count_package_lines.


DavidBarke/QWUtils documentation built on Jan. 13, 2020, 11:52 a.m.