I have tried to install BiocInstaller on R . Getting the below message:
> source("http://bioconductor.org/biocLite.R")
Installing package into ‘/usr/local/lib/R/site-library’
(as ‘lib’ is unspecified)
Warning: unable to access index for repository http://bioconductor.org/packages/3.1/bioc/src/contrib
'biocLite.R' failed to install 'BiocInstaller', use
'install.packages("BiocInstaller",
repos="http://www.bioconductor.org/packages/3.1/bioc")'
Warning message:
package ‘BiocInstaller’ is not available (for R version 3.2.2)
>
tried with this step also : (install.packages("BiocInstaller", repos="http://www.bioconductor.org/packages/3.1/bioc")'
No luck.
Could please provide the fix for this issue.
Can you see this link in a web browser?
http://bioconductor.org/packages/3.1/bioc/src/contrib/PACKAGES
I can. If you cannot, then the problem is with your network access or policies.
You might also try doing
on the machine where R is running, because maybe it has different network settings.
I can able to see the link on browser
The warnging about 'unable to access index for repository' comes when R tries to download the file Dan mentions. So does
I guess this will fail, too. The help page
?download.file
lists several different values for the 'method' argument. Try eachetc. If one works, then try to set that method as the default
Verify that
download.file()
now works with no 'method' argument, and trysource("http://bioconductor.org/biocLite.R")
again. Please let us know if this works.It do work! Thanks a lot~