## Not run:
# ## Change default Bioconductor and CRAN mirrors
# chooseBioCmirror()
# chooseCRANmirror()
#
#
# ## If you don't have the BiocInstaller package installed, you can
# ## quickly install and load it as follows:
# source("https://bioconductor.org/biocLite.R") # 'http' if 'https' unavailable
#
#
# ## The most recent version of the BiocInstaller package is now loaded.
# ## No need to load it with library().
#
# # installs default packages (if not already installed) and updates
# # previously installed packages
# biocLite()
#
#
# ## Now install a CRAN package:
# biocLite("survival")
#
# ## install a Bioconductor package, but don't update all installed
# ## packages as well:
# biocLite("GenomicRanges", suppressUpdates=TRUE)
#
# ## Install default packages, but do not update any package whose name
# ## starts with "org." or "BSgenome."
# biocLite(suppressUpdates=c("^org\.", "^BSgenome\."))
#
# ## install a package from source:
# biocLite("IRanges", type="source")
#
# ## install all Bioconductor software packages
# biocLite(all_group())
#
# ## End(Not run)
## Show the Bioconductor and CRAN repositories that will be used to
## install/update packages.
biocinstallRepos()
Run the code above in your browser using DataCamp Workspace