dependency_table | R Documentation |
Create dependency structure of your package collection
dependency_table(
project = ".",
project_type = c("local", "repo@host")[1],
ref = NULL,
local_repos = if ((project_type) == "local") get_local_pkgs_from_config() else NULL,
direction = "all",
fallback_branch = "main",
renv_profile = NULL,
verbose = 1
)
project |
( |
project_type |
( |
ref |
( |
local_repos |
( |
direction |
( |
fallback_branch |
( |
renv_profile |
( |
verbose |
( |
dependency_structure
An S3 object with the following items:
project
argument used to create
the object (absolute path if project_type
is local
project_type
used to create object
The R package name of code in the project
directory
data.frame
contain one row per r package discovered, with the
following rows package_name
, type
(current
, upstream
, downstream
or other
),
distance
(minimum number of steps from current_pkg
), ref
, repo
, host
, sha
cache_dir
, accessible
, installable
and install_index
(the order to install the packages).
Note some items are are suppressed when printing the object
list
with three elements, upstream_deps
is the graph where edges point from a package
to its upstream dependencies. They are ordered in installation order. The
downstream_deps
list is the graph with the edge direction flipped,
and is ordered in reverse installation order. external
contains the external
R packages found in the description files of the internal packages. It is a dataframe
of the form returned by desc::desc_get_deps
direction
argument used to create object
named list
containing the json of the renv.lock files for the chosen profile for
each repo. An entry to the list is NULL
if a repos does not have the required lock file
## Not run:
dependency_table(verbose = 1)
dependency_table(
project = "openpharma/stageddeps.food@https://github.com",
project_type = "repo@host",
ref = "main"
)
x <- dependency_table(
project = "path/to/project",
direction = c("upstream")
)
print(x)
plot(x)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.