Description Public fields Active bindings Methods
R6 class wrapper for data returned by functiondepends
functions
path
Character path of repository
envir
Environment to store parsed functions in
functions
Data.frame with functions found in path
dependencies
Data.frame serving as edge list of function dependencies
graph,
Igraph object
graph,
Igraph object
new()
Initialize path and create new environment
FunctionData$new()
path
Character path to search source R files in
is_initialized()
Check if fields are initialized
FunctionData$is_initialized()
reset()
Reset fields to NULL
FunctionData$reset()
create_path()
Create path to downloaded data
FunctionData$create_path(repo, branch)
repo
Character, name of repository in format Name/Repo
branch
Character, name of branch
Character, path
download_github()
Download repository from GitHub
FunctionData$download_github(repo, branch)
repo
Character, name of repository in format Name/Repo
branch
Character, name of branch
Logical, indicates whether download succeeded
set_path()
Set path
field
FunctionData$set_path(path)
path
Character path to search source R files in
get_path()
Getter for path
field
FunctionData$get_path()
set_envir()
Set envir
field
FunctionData$set_envir(envir = new.env())
envir
Environment, default is new.env()
get_envir()
Getter for envir
field
FunctionData$get_envir()
find_functions()
Search for functions in path
FunctionData$find_functions()
get_functions()
Getter for functions
field
FunctionData$get_functions()
find_dependencies()
Find dependencies of found functions
FunctionData$find_dependencies(in_envir = TRUE)
in_envir
Logical, to be passed to functiondepends::find_dependencies
get_dependencies()
Getter for dependencies
field
FunctionData$get_dependencies()
make_graph()
Make graph
FunctionData$make_graph()
get_graph()
Get graph
FunctionData$get_graph(node = NULL, mode = NULL, order = NULL)
node
Character, name of node to select
mode
Character, mode of neighborhood
order
Integer, order of neighborhood
plot()
Plot network
FunctionData$plot(node = NULL, mode = NULL, order = NULL)
node
Character, name of node to select
mode
Character, mode of neighborhood
order
Integer, order of neighborhood
plot_distribution()
Plot network
FunctionData$plot_distribution(node = NULL, mode = "all", order = NULL)
node
Character, name of node to select
mode
Character, mode of neighborhood
order
Integer, order of neighborhood
clone()
The objects of this class are cloneable with this method.
FunctionData$clone(deep = FALSE)
deep
Whether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.