How to install BioConductor
Install R
- Download the most recent version of R from CRAN. The R FAQ and the R Installation and Administration Manual contain detailed instructions for installing R on various platforms (Linux, OS X, and Windows being the main ones).
- Start the R program. On Windows and OS X, this will usually mean double-clicking on the R application. On Unix-like systems, type "R" at a shell prompt.
- As a first step with R, start the R help browser by typing "help.start()" in the R command window. For help on any function, e.g. the "mean" function, type "? mean".
Install BioConductor packages
Install BioConductor packages using the biocLite.R installation script. In an R command window, type the following:
source("http://bioconductor.org/biocLite.R")
biocLite()
This installs the following packages: affy, affydata, affyPLM, annaffy, annotate, Biobase, Biostrings, DynDoc, gcrma, genefilter, geneplotter, hgu95av2, limma, marray, matchprobes, multtest, ROC, vsn, xtable, affyQCReport. After downloading and installing these packages, the script prints "Installation complete" and TRUE.
The biocLite script has arguments that change the default behavior:
- pkgs
- Character vector of BioConductor packages to install.
- destdir
- File system directory for downloaded packages.
- lib
- R library where packages are installed.
Install additional packages
There are many BioConductor and R packages in addition to those in the default installation of biocLite. Discover packages by visiting BiocViews. To install a new package, e.g., EBImage, use
source("http://bioconductor.org/biocLite.R")
biocLite("EBImage")
Install "pkg1" and "pkg2" with
biocLite(c("pkg1", "pkg2"))
Update packages
(Revised 10/4/2007) BioConductor packages, especially those in the 'devel' branch, are updated fairly regularly. To update all of your installed packages, start a new session of R and enter
source("http://bioconductor.org/biocLite.R")
update.packages(repos=biocinstallRepos(), ask=FALSE)
Read the help page for update.packages for additional details.