loc_stats | R Documentation |
Internal calculation of Lines-of-Code Statistics
loc_stats(path)
path |
Directory to source code of package being analysed |
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.
NA values are returned for directories which do not exist.
Other stats:
desc_stats()
,
pkgstats()
,
pkgstats_summary()
,
rd_stats()
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.