build_json_tree: Build JSON Tree

Description Usage Arguments Examples

Description

Builds a Tree structure under JSON format representing the dependencies and reverse dependencies of an R package

Usage

1
  build_json_tree(pkg_desc, file = "")

Arguments

pkg_desc

list of attributes from a package current description (obtained from output in scrape_current_pkg)

file

name of file to write the JSON tree

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 
  plspm_deps = list(
    depends = c("amap, diagram, tester, turner"),
    imports = NA,
    suggests = c("plsdepot, FactoMineR, ggplot2, reshape, testthat, knitr"),
    revdepends = c("pathmox"),
    revimports = NA,
    revsuggests = c("matrixpls, plsdepot")
  )

  build_json_tree(plspm_deps, file = "toy_json_tree.json")

## End(Not run)

gastonstat/cranium documentation built on May 16, 2019, 5:45 p.m.