Skip to contents

Retrieve a vector of sources for plugin package dependencies, to make it easier to install those sources. This function is intended for use in automated deployment systems, such as GitHub Actions.

Usage

plugin_GetDependencySources(lPlugin)

Arguments

lPlugin

list A named list with required elements meta and shiny, and optional fields spec, packages and required_inputs. Usually generated by plugin_Read().

Value

A character vector of package sources, such as "ggplot2" (to install from CRAN) or "url::https://safetygraphics.r-universe.dev/src/contrib/safetyCharts_0.4.0.tar.gz" (to install from a specific URL on r-universe).

Examples

plugin_GetDependencySources(
  list(packages = list(
    list(name = "ggplot2"),
    list(name = "gsm.core", remote = "Gilead-BioStats/gsm.core")
  ))
)
#> [1] "ggplot2"                  "Gilead-BioStats/gsm.core"