get_sysreqs_json: Query the public RStudio Package

Description Usage Arguments Details Value Examples

View source: R/get-sysreqs.R

Description

Query the public RStudio Package

Usage

1
get_sysreqs_json(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

An httr response, parsed as a JSON

Examples

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

## End(Not run)

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