Learn R Programming

pkgstats (version 0.1.1)

loc_stats: 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

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.

See Also

Other stats: desc_stats(), pkgstats_summary(), pkgstats(), rd_stats()

Examples

Run this code
# NOT RUN {
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)
# }

Run the code above in your browser using DataLab