rm(list = ls()) require(kaiaulu) require(stringi) require(visNetwork) require(igraph) require(data.table) require(knitr)
folder_path <- "../R"
dependencies <- parse_r_dependencies(folder_path) head(dependencies)
file_graph <- transform_r_dependencies_to_network(dependencies,dependency_type="file") project_function_network <- igraph::graph_from_data_frame(d=file_graph[["edgelist"]], directed = TRUE, vertices = file_graph[["nodes"]]) visIgraph(project_function_network,randomSeed = 1)
function_graph <- transform_r_dependencies_to_network(dependencies,dependency_type="function") project_function_network <- igraph::graph_from_data_frame(d=function_graph[["edgelist"]], directed = TRUE, vertices = function_graph[["nodes"]]) visIgraph(project_function_network,randomSeed = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.