count_package_lines: Count the lines of all functions in a loaded package

Description Usage Arguments

View source: R/count_package_lines.R

Description

Count the lines of all functions in a loaded package, which is NOT equal to the number of lines of the scripts defining the functions due to the absence of the roxygen documentation. Furthermore only functions are considered and not for example R6 objects.

Usage

1
count_package_lines(package, output = c("sum", "separated"))

Arguments

package

Package name.

Output

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


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