check_R: Check and install R packages

View source: R/utils.R

check_RR Documentation

Check and install R packages

Description

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.


zh542370159/SCP documentation built on Nov. 22, 2023, 2:34 a.m.