Set Local Bioconductor Repository
3
3
Entering edit mode
14.5 years ago
anothergeek ▴ 180

I have set up a local Bioconductor repository (and CRAN mirror), and would now like to be able to install Bioconductor on fresh machines using the

source("http://www.bioconductor.org/biocLite.R")
biocLite()

... method, but installing from the local site.

What are the steps to required to do this?

It is an Ubuntu machine, but I presume the steps apply to other platforms

r bioconductor • 6.6k views
ADD COMMENT
3
Entering edit mode
14.5 years ago
Nathan Harmston ★ 1.1k

So I've never done this personally but reading through

  1. http://www.bioconductor.org/biocLite.R
  2. http://bioconductor.org/getBioC.R

would lead me to believe that you need to have a R script that calls a local version of getBioC.R ....

scriptUrl <- paste("http://bioconductor.org",
                       "installScripts",
                       choppedRVer,
                       "biocinstall.R", sep="/")

replacing the bioconductor.org with the local mirror?

I can't say this will work for definite but its probably a good place to start!

HTH a little.

ADD COMMENT
3
Entering edit mode
14.5 years ago
Jan Oosting ▴ 920
source("http://bioconductor.org/biocLite.R")
# Bioconductor mirror
options("BioC_mirror"="http://local.bioconductor.mirror")
# CRAN mirror
r <- getOption("repos")
r["CRAN"] <- "http://local.cran.mirror/"
options(repos=r)
#
biocLite()
ADD COMMENT
0
Entering edit mode
9.0 years ago
Farshad • 0

Easier method is to go through regular install.packages as below:

  • Download the appropriate file from the Bioconductor package home (in this case, I have used the windows binary)
  • Make sure you copy the file in your working directory.
  • install the package as below:

install.packages("package.zip", repos = NULL, type = "binary")

It should go through easily, if the parameters are set correctly.

ADD COMMENT

Login before adding your answer.

Traffic: 1817 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6