pkgstats | R Documentation |
Analyse statistics of one R package
pkgstats(path = ".")
path |
Either a path to a local source repository, or a local '.tar.gz' file, containing code for an R package. |
List of statistics and data on function call networks (or object relationships in other languages). Includes the following components:
loc: Summary of Lines-of-Code in all package directories
vignettes: Numbers of vignettes and "demo" files
data_stats: Statistics of numbers and sizes of package data files
desc: Summary of contents of 'DESCRIPTION' file
translations: List of translations into other (human) languages (where provides)
objects: A data.frame
of all functions in R, and all other
objects (functions, classes, structures, global variables, and more) in all
other languages
network: A data.frame
of object references within and between all
languages; in R these are function calls, but may be more abstract in other
languages.
external_calls: A data.frame
of all calls make to all functions
from all other R packages, including base and recommended as well as
contributed packages.
Other stats:
desc_stats()
,
loc_stats()
,
pkgstats_summary()
,
rd_stats()
# 'path' can be path to a package tarball:
f <- system.file ("extdata", "pkgstats_9.9.tar.gz", package = "pkgstats")
## Not run:
s <- pkgstats (f)
## End(Not run)
# or to a source directory:
path <- extract_tarball (f)
## Not run:
s <- pkgstats (path)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.