load: yyload

yyinstallR Documentation

yyload

Description

library packages.

Usage

yyinstall(
  ...,
  names = NULL,
  dependencies = NA,
  update = FALSE,
  version = BiocManager::version()
)

yyuninstall(..., names = NULL)

yyload(..., names = NULL, show.conflict = TRUE)

yyunload(..., names = NULL)

Arguments

...

names of pkgs, without the quotes.

names

names of pkgs, with the quotes.

dependencies

logical indicating whether to also install uninstalled packages which these packages depend on/link to/import/suggest (and so on recursively). Not used if repos = NULL. Can also be a character vector, a subset of c("Depends", "Imports", "LinkingTo", "Suggests", "Enhances").

Only supported if lib is of length one (or missing), so it is unambiguous where to install the dependent packages. If this is not the case it is ignored, with a warning.

The default, NA, means c("Depends", "Imports", "LinkingTo").

TRUE means to use c("Depends", "Imports", "LinkingTo", "Suggests") for pkgs and c("Depends", "Imports", "LinkingTo") for added dependencies: this installs all the packages needed to run pkgs, their examples, tests and vignettes (if the package author specified them correctly).

In all of these, "LinkingTo" is omitted for binary packages.

update

logical(1). When FALSE, BiocManager::install() does not attempt to update old packages. When TRUE, update old packages according to ask.

version

character(1) Bioconductor version to install, e.g., version = "3.8". The special symbol version = "devel" installs the current 'development' version.

show.conflict

Whether to display conflict information.

Examples

## Not run: 
yyinstall(ggtext, "ggsci")
yyuninstall(ggtext, "ggsci")

## restart R
yyload(ggtext, "ggsci")
yyunload(ggtext, "ggsci")

## End(Not run)

yanpd01/yyeasy documentation built on Dec. 1, 2022, 10:58 p.m.