Skip to contents

Check and install R packages

Usage

check_R(
  packages,
  install_methods = c("BiocManager::install", "install.packages",
    "devtools::install_github"),
  lib = .libPaths()[1],
  force = FALSE
)

Arguments

packages

Package to be installed. Package source can be CRAN, Bioconductor or Github, e.g. scmap, quadbiolab/simspec. By default, the package name is extracted according to the packages parameter.

install_methods

Functions used to install R packages.

lib

The location of the library directories where to install the packages.

force

Whether to force the installation of packages. Default is FALSE.