| install | R Documentation |
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 old.packages() and used to
determine the library location of installed packages to be updated;
and lib, passed to install.packages{} to determine the
library location where pkgs are to be installed.
When installing GitHub packages, ... is passed to the
remotes package functions 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, allows
organizations and its users to use offline repositories with BiocManager
while enforcing appropriate version checks between Bioconductor and R.
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 regarding the current release and
development versions of Bioconductor. In addition, offline
organizations and its 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::repositories() returns the Bioconductor and
CRAN repositories used by install().
install.packages() installs the packages themselves (used by
BiocManager::install internally).
update.packages() updates all installed packages (used by
BiocManager::install internally).
chooseBioCmirror() allows choice of a mirror from all
public Bioconductor mirrors.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.