
Condense the output ofpkgstats to summary statistics only
Source:R/pkgstats-summary.Rpkgstats_summary.RdCondense the output ofpkgstats to summary statistics only
Arguments
- s
Output ofpkgstats, containing full statistical data on onepackage. Default of
NULLreturns a single row withNAvalues (used inpkgstats_from_archive).
Note
Variable names in the summary object use the following abbreviations:
"loc" = Lines-of-Code
"fn" = Function
"n_fns" = Number of functions
"npars" = Number of parameters
"doclines" = Number of documentation lines
"nedges" = Number of edges in function call network, as a count ofunique edges, which may be less than the size of the
networkobject returned bypkgstats, because that may include multiple callsbetween identical function pairs."n_clusters" = Number of connected clusters within the function callnetwork.
"centrality" used as a prefix for several statistics, along with"dir" or "undir" for centrality calculated on networks respectivelyconstructed with directed or undirected edges; "mn" or "md" for respectivemeasures of mean or median centrality, and "no0" for measures excludingedges with zero centrality.
See also
Other stats:desc_stats(),loc_stats(),pkgstats(),rd_stats()
Examples
f<-system.file("extdata","pkgstats_9.9.tar.gz", package="pkgstats")if(FALSE){# ctags_test(noerror = TRUE)p<-pkgstats(f)s<-pkgstats_summary(p)}