I am new to R ,want to install bioconductor package in ubuntu(14.04) . The following message was displayed when i tried the installation :
> source("http://bioconductor.org/biocLite.R")
Bioconductor version 2.13 (BiocInstaller 1.12.1), ?biocLite for help
A newer version of Bioconductor is available after installing a new version of
R, ?BiocUpgrade for help
> biocLite()
BioC_mirror: http://bioconductor.org
Using Bioconductor version 2.13 (BiocInstaller 1.12.1), R version 3.0.2.
Warning message:
installed directory not writable, cannot update packages 'boot', 'class',
'cluster', 'codetools', 'foreign', 'KernSmooth', 'lattice', 'Matrix', 'mgcv',
'nlme', 'nnet', 'rpart', 'spatial', 'survival'
// Commands pasted above were taken as typed in the ubuntu terminal .
Suggestions to resolve this would be really helpful to me . Thanking You in advance .
In Ubuntu, if you install R using say 'apt get', then you will install in a system directory that is not writeable by a regular user. This includes the library directory and recommended packages. Then if you try to install packages as a regular user, R will create a personal library directory in your home directory (which is where all of your Bioconductor packages were installed).
One step for biocLite() is to look at the installed packages, and see if they can be updated. If some of the recommended packages in the system directory can be updated, then biocLite() will note that and tell you that you don't have privileges to update them, which is what that warning is telling you.
If you really care to update the recommended packages, you can run R under sudo and then biocLite() will have privileges to install in the system directories.
cd ~/Downloads
wget http://cran.fhcrc.org/src/base/R-3/R-3.1.2.tar.gz
tar zxf R-3.1.2.tar.gz
cd
mkdir R-3.1.2
cd R-3.1.2
~/Downloads/R-3.1.2/configure && make
Done. (don't run make install)
Start R with ~/R-3.1.2/bin/R or create a symlink in ~/bin
Thank you very much for the suggestion . I was able to sort out the problems . Reinstalled and using R -3.1.2 now .