Skip to contents

Check and install R packages

Usage

check_r(
  packages,
  install_methods = c("pak::pak", "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. 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.