rv tree
Returns the dependency tree of all packages in the project.
rv tree [OPTIONS]
Options
Section titled “Options”--depth
- Dependency depth to display: 1 - only display root dependencies, 2 - root dependencies + their direct dependencies. Defaults to displaying everything--hide-system-deps
- Whether to display the system dependencies on each leaf. System dependencies are only available on some Linux platforms, otherwise is already hidden.--r-version
- Specify an R version different than the one in the config. The R version does not need to be on the system
Example
Section titled “Example”Config File:
[project]name = "tree"r_version = "4.4"
repositories = [ { alias = "CRAN", url = "https://cran.r-project.org" }]
dependencies = [ "stringr", "purrr",]
Config with stringr
and purrr
as listed dependencies:
% rv tree▶ stringr [version: 1.5.1, source: https://cran.r-project.org, type: binary]├─ magrittr [version: 2.0.3, source: https://cran.r-project.org, type: binary]├─ glue [version: 1.8.0, source: https://cran.r-project.org, type: binary]├─ stringi [version: 1.8.7, source: https://cran.r-project.org, type: binary]├─ vctrs [version: 0.6.5, source: https://cran.r-project.org, type: binary]│ ├─ lifecycle [version: 1.0.4, source: https://cran.r-project.org, type: binary]│ │ ├─ rlang [version: 1.1.6, source: https://cran.r-project.org, type: binary]│ │ ├─ cli [version: 3.6.3, source: https://cran.r-project.org, type: binary]│ │ └─ glue [version: 1.8.0, source: https://cran.r-project.org, type: binary]│ ├─ cli [version: 3.6.3, source: https://cran.r-project.org, type: binary]│ ├─ glue [version: 1.8.0, source: https://cran.r-project.org, type: binary]│ └─ rlang [version: 1.1.6, source: https://cran.r-project.org, type: binary]├─ cli [version: 3.6.3, source: https://cran.r-project.org, type: binary]├─ lifecycle [version: 1.0.4, source: https://cran.r-project.org, type: binary]│ ├─ cli [version: 3.6.3, source: https://cran.r-project.org, type: binary]│ ├─ glue [version: 1.8.0, source: https://cran.r-project.org, type: binary]│ └─ rlang [version: 1.1.6, source: https://cran.r-project.org, type: binary]└─ rlang [version: 1.1.6, source: https://cran.r-project.org, type: binary]
▶ purrr [version: 1.0.4, source: https://cran.r-project.org, type: binary]├─ lifecycle [version: 1.0.4, source: https://cran.r-project.org, type: binary]│ ├─ cli [version: 3.6.3, source: https://cran.r-project.org, type: binary]│ ├─ rlang [version: 1.1.6, source: https://cran.r-project.org, type: binary]│ └─ glue [version: 1.8.0, source: https://cran.r-project.org, type: binary]├─ rlang [version: 1.1.6, source: https://cran.r-project.org, type: binary]├─ vctrs [version: 0.6.5, source: https://cran.r-project.org, type: binary]│ ├─ rlang [version: 1.1.6, source: https://cran.r-project.org, type: binary]│ ├─ cli [version: 3.6.3, source: https://cran.r-project.org, type: binary]│ ├─ glue [version: 1.8.0, source: https://cran.r-project.org, type: binary]│ └─ lifecycle [version: 1.0.4, source: https://cran.r-project.org, type: binary]│ ├─ glue [version: 1.8.0, source: https://cran.r-project.org, type: binary]│ ├─ rlang [version: 1.1.6, source: https://cran.r-project.org, type: binary]│ └─ cli [version: 3.6.3, source: https://cran.r-project.org, type: binary]├─ cli [version: 3.6.3, source: https://cran.r-project.org, type: binary]└─ magrittr [version: 2.0.3, source: https://cran.r-project.org, type: binary]