runi_packages: Packages in an R-universe

Description Usage Arguments Details Value Author(s) Examples

View source: R/runi_packages.R

Description

List all packages available in an R-universe.

Usage

1
runi_packages(universe, package = NULL, version = NULL)

Arguments

universe

A length one character. User or organization name of the the R-universe owner.

package

either NULL, or a length one character. Package name (see details).

version

either NULL, or a character vector. Package version (see details).

Details

This function gives access to three types of information, depending on how many arguments are different from NULL:

The argument version is ignored if package is NULL.

Value

a tibble if both package and version are not NULL, a character vector otherwise.

Author(s)

Valerio Gherardi

Examples

1
2
3
( packages <- runi_packages("vgherard") )
( versions <- runi_packages("vgherard", packages[[1]]) )
( versions <- runi_packages("vgherard", packages[[1]], versions[[1]]) )

vgherard/runi documentation built on Dec. 23, 2021, 3:09 p.m.