Skip to content

Instantly share code, notes, and snippets.

@komalsrathi
Last active January 6, 2016 18:43
Show Gist options
  • Save komalsrathi/dfdf109b15721f36c1d8 to your computer and use it in GitHub Desktop.
Save komalsrathi/dfdf109b15721f36c1d8 to your computer and use it in GitHub Desktop.
create .Rprofile in your home directory
# No need to specify repos to install a CRAN package
cat("Setting R repository:http://cran.case.edu\n")
repo = getOption("repos")
# set up the server from which you will download the package.
repo["CRAN"] = "http://cran.case.edu"
options(repos = repo)
rm(repo)
# load BiocInstaller/biocLite when R starts
# you can now directly install bioconductor packages using biocLite('package-name')
# no need to load biocLite explicitly
cat("Loading BiocInstaller:\n")
library(BiocInstaller)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment