Skip to contents

Install and document additional packages in a slushy environment.

Usage

slushy_add(pkgs, project = NULL, config = get_config(), restart = TRUE)

Arguments

pkgs

Character vector of packages to install.

project

The project directory. If NULL, defaults to the nearest parent directory that contains an `.Rproj` file relative to the current working directory.

config

List of configuration options. If not provided, defaults to reading from default settings in config file included in slushy package.

restart

Restart session after package is added? Defaults to TRUE.

Value

This function is called for its side effects.

Examples

if (FALSE) { # \dontrun{
  slushy_add("newpkg")
} # }