Description Public fields Active bindings Methods
R6 class wrapper for data returned by functiondepends functions
pathCharacter path of repository
envirEnvironment to store parsed functions in
functionsData.frame with functions found in path
dependenciesData.frame serving as edge list of function dependencies
graph, Igraph object
graph, Igraph object
new()Initialize path and create new environment
FunctionData$new()
pathCharacter 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)
repoCharacter, name of repository in format Name/Repo
branchCharacter, name of branch
Character, path
download_github()Download repository from GitHub
FunctionData$download_github(repo, branch)
repoCharacter, name of repository in format Name/Repo
branchCharacter, name of branch
Logical, indicates whether download succeeded
set_path()Set path field
FunctionData$set_path(path)
pathCharacter 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())
envirEnvironment, 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_envirLogical, 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)
nodeCharacter, name of node to select
modeCharacter, mode of neighborhood
orderInteger, order of neighborhood
plot()Plot network
FunctionData$plot(node = NULL, mode = NULL, order = NULL)
nodeCharacter, name of node to select
modeCharacter, mode of neighborhood
orderInteger, order of neighborhood
plot_distribution()Plot network
FunctionData$plot_distribution(node = NULL, mode = "all", order = NULL)
nodeCharacter, name of node to select
modeCharacter, mode of neighborhood
orderInteger, order of neighborhood
clone()The objects of this class are cloneable with this method.
FunctionData$clone(deep = FALSE)
deepWhether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.