apt_get_install: Generate an installation command for the system dependencies...

Description Usage Arguments Details Value Examples

View source: R/install-commands.R

Description

Generate an installation command for the system dependencies of the given packages

Usage

1
apt_get_install(packages, distribution = "ubuntu", release = NULL)

Arguments

packages

Character vector of packages. Alternatively, the file path of an renv lockfile, or directory containing renv.lock. In this case, the CRAN packages will be extracted from the lockfile and used as input.

distribution

Character. Operating system or distribution of the target system. For example, "ubuntu" or "centos".

release

Character. Release of the operating system, eg. "18.04". It's not clear what this defaults to, but it is likely to be the latest release.

Details

This queries the RStudio Package Manager API (https://packagemanager.rstudio.com/__api__/swagger/index.html). This API may change in the future.

Value

A character vector of required packages

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
apt_get_install("tidyverse", distribution = "centos")
apt_get_install(
  c("plumber", "rmarkdown"),
  distribution = "ubuntu",
  release = "20.04"
)

## End(Not run)

mdneuzerling/getsysreqs documentation built on Jan. 1, 2021, 9:24 a.m.