Install or update Bioconductor, CRAN, and GitHub packages
The BiocManager::install() function installs or
updates Bioconductor and CRAN packages in a Bioconductor
release. Upgrading to a new Bioconductor release may require
additional steps; see https://bioconductor.org/install.
install( pkgs = character(), ..., site_repository = character(), update = TRUE, ask = TRUE, checkBuilt = FALSE, force = FALSE, version = BiocManager::version() )
pkgs |
|
... |
Additional arguments used by |
site_repository |
(Optional) |
update |
|
ask |
|
checkBuilt |
|
force |
|
version |
|
Installation of Bioconductor and CRAN packages use R's standard
functions for library management – install.packages(),
available.packages(), update.packages(). Installation of GitHub
packages uses the remotes::install_github().
When installing CRAN or Bioconductor packages, typical arguments
include: lib.loc, passed to \link{old.packages}() and used to
determine the library location of installed packages to be updated;
and lib, passed to \link{install.packages}() to determine the
library location where pkgs are to be installed.
When installing GitHub packages, ... is passed to the
remotes package functions \link[remotes]{install_github}()
and remotes:::install(). A typical use is to build vignettes, via
dependencies=TRUE, build_vignettes=TRUE.
See ?repositories for additional detail on customizing where
BiocManager searches for package installation.
BIOCONDUCTOR_ONLINE_VERSION_DIAGNOSIS is an environment
variable or global options() which, when set to FALSE, avoids
the R and Bioconductor version checks that are done by querying
an online configuration file. Setting
BIOCONDUCTOR_ONLINE_VERSION_DIAGNOSIS to FALSE can speed
package loading when internet access is slow or non-existent, but
may result in out-of-date information about the current release and
development versions of Bioconductor. Offline users should
set the BIOCONDUCTOR_CONFIG_FILE environment variable or option
to a .yaml file similar to https://bioconductor.org/config.yaml
for full offline use and version validation.
BiocManager::install() returns the pkgs argument, invisibly.
BiocManager::\link{repositories}() returns the Bioconductor and
CRAN repositories used by install().
\link{install.packages}() installs the packages themselves (used by
BiocManager::install internally).
\link{update.packages}() updates all installed packages (used by
BiocManager::install internally).
\link{chooseBioCmirror}() allows choice of a mirror from all
public Bioconductor mirrors.
\link{chooseCRANmirror}() allows choice of a mirror from all
public CRAN mirrors.
## Not run:
## update previously installed packages
BiocManager::install()
## install Bioconductor packages, and prompt to update all
## installed packages
BiocManager::install(c("GenomicRanges", "edgeR"))
## install a CRAN and Bioconductor packages:
BiocManager::install(c("survival", "SummarizedExperiment"))
## install a package from source:
BiocManager::install("IRanges", type="source")
## End(Not run)Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.