the shiny app dependencies packages are checked recursively.
The c("Depends", "Imports", "LinkingTo") DESCRIPTION files fields are checked recursively.
The required dependencies have to be installed in the local repository.
The default arguments setup is recommended.
Usage
app_deps(
path = ".",
fields = c("Depends", "Imports", "LinkingTo"),
lib.loc = .libPaths(),
local = TRUE,
base = FALSE,
description_v = FALSE,
recursive = TRUE,
repos = biocran_repos()
)Arguments
- path
characterpath to the shiny app. Default:"."- fields
charactervector listing the types of dependencies, a subset ofc("Depends", "Imports", "LinkingTo", "Suggests", "Enhances"). Character string "all" is shorthand for that vector, character string "most" for the same vector without "Enhances", character string "strong" (default) for the first three elements of that vector. Default:c("Depends", "Imports", "LinkingTo")- lib.loc
charactervector of search paths with local packages. Default:.libPaths()- local
logicalif to use local repository (or newest remote packages). Default: TRUE- base
logicalif to add base packages too. IfTRUEthenpacs::pacs_base()are taken into account. Default:FALSE- description_v
logicalif the dependencies version should be taken from description files, minimal required. By default installed versions are taken. Default:FALSE- recursive
logicalif to assess the dependencies recursively. Default: TRUE- repos
charactervector base URLs of the repositories to use. By default checking CRAN and newest Bioconductor per R version. Defaultpacs::biocran_repos()
Examples
if (FALSE) { # \dontrun{
library(renv)
# Please update the path to the custom shiny app
app_path <- system.file("examples/04_mpg", package = "shiny")
pacs::app_deps(app_path)
pacs::app_deps(app_path, recursive = FALSE)
} # }