-
Notifications
You must be signed in to change notification settings - Fork 37
/
pkgnet-package.Rd
91 lines (75 loc) · 2.75 KB
/
pkgnet-package.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pkgnet.R
\docType{package}
\name{pkgnet-package}
\alias{pkgnet}
\alias{pkgnet-package}
\title{pkgnet : Network Analysis of R Packages}
\description{
R packages can be complex bodies of code and functionality with
hard-to-intuit underlying structure. \pkg{pkgnet} provides tools to analyze and
understand that structure through the lens of
\href{https://en.wikipedia.org/wiki/Network_theory}{network theory}.
}
\section{Package Report}{
The simplest way of using pkgnet is through the function
\code{\link{CreatePackageReport}}, e.g.,
\preformatted{ CreatePackageReport("lubridate")}
This will create a standalone HTML report containing analyses of various
aspects of the specified subject package.
For more info, check out our introductory vignette with
\preformatted{ vignette("pkgnet-intro")}
}
\section{Individual Reporters}{
Reporters are the basic modules of functionality within pkgnet. Each
type of reporter is used to analyze a particular aspect of the subject
package. The currently available reporters are:
\describe{
\item{\bold{\code{\link{DependencyReporter}}}}{analyze the recursive
network of packages that the subject package depends on.
}
\item{\bold{\code{\link{FunctionReporter}}}}{analyze the network of
interdependencies of the functions defined in the subject package
}
\item{\bold{\code{\link{InheritanceReporter}}}}{analyze the class
inheritance trees for subject packages that use object-oriented
programming.
}
\item{\bold{\code{\link{SummaryReporter}}}}{get an overview of the
subject package through its DESCRIPTION file.
}
}
\code{\link{CreatePackageReport}} uses a \link[=DefaultReporters]{standard
set of reporters} by default. You can customize the reporters you want by
passing in your own list of instantiated reporters, e.g.
\preformatted{
CreatePackageReport(
"lubridate",
pkg_reporters = list(FunctionReporter$new(), InheritanceReporter$new())
)
}
You can also use reporters interactively. Once you have a reporter
instantiated, check our that reporter's documentation to see what you can
do.
\preformatted{
reporter <- DependencyReporter$new()
reporter$set_package("lubridate")
}
}
\seealso{
Useful links:
\itemize{
\item \url{https://github.com/uptake/pkgnet}
\item \url{https://uptake.github.io/pkgnet/}
\item Report bugs at \url{https://github.com/uptake/pkgnet/issues}
}
}
\author{
\strong{Maintainer}: Brian Burns \email{brian.burns.opensource@gmail.com}
Authors:
\itemize{
\item James Lamb \email{jaylamb20@gmail.com}
\item Jay Qi \email{jayqi.opensource@gmail.com}
}
}
\keyword{internal}