Internal calculation of Lines-of-Code Statistics
Description
Internal calculation of Lines-of-Code Statistics
Usage
loc_stats(path)
Arguments
path: Directory to source code of package being analysed
Note
NA values are returned for directories which do not exist.
Seealso
Other stats:
[desc_stats](desc_stats)(),
[pkgstats](pkgstats)(),
[pkgstats_summary](pkgstats_summary)(),
[rd_stats](rd_stats)()
Concept
stats
Value
A list of statistics for each of three directories, ‘R’, ‘src’, and ‘inst/include’, each one having 5 statistics of total numbers of lines, numbers of empty lines, total numbers of white spaces, total numbers of characters, and indentation used in files in that directory.
Examples
f <- system.file ("extdata", "pkgstats_9.9.tar.gz", package = "pkgstats")
# have to extract tarball to call function on source code:
path <- extract_tarball (f)
loc_stats (path)