pkgs: pkgs

pkgsR Documentation

pkgs

Description

Install and/or load any necessary libraries, or skip if they are already loaded.

Usage

pkgs(packages, quiet = FALSE, repos = c("https://cloud.r-project.org"))

Arguments

packages

Single character or character vector with package/library names

quiet

Logical whether to show which packages were installed, loaded, or skipped, as well as their version numbers.

repos

Specified repo web address to attempt to pull uninstalled libraries from.

Value

Environmental conditions: Installs and/or loads libraries where necessary.

Examples

## Not run: 
miao::pkgs(c('toddellis/miao', 'tidyverse'))

## End(Not run)

toddellis/miao documentation built on June 1, 2025, 10:11 p.m.