accio: Install, update and attach packages

Description Usage Arguments Value Examples

View source: R/accio.R

Description

A utility function for easy installation and attaching of packages. If a package is unavailable in any of the local libraries, it will be fetched and installed.

Usage

1
accio(packages, update = FALSE, silent = TRUE)

Arguments

packages

A character vector. The names of the packages to attach or install.

update

A logical scalar. Should outdated packages be updated as well?

silent

A logical scalar. Suppress all errors, warnings, and messages?

Value

A logical vector of the same lenght as packages. Each entry indicates whether loading the package was successful.

Examples

1
accio(c("tictoc", "praise", "available", "xxyyzz"))

nielsaka/charms documentation built on Sept. 3, 2019, 12:32 p.m.