Ok everyone, I'm new to this so please be nice. I am trying to update Bioconductor in my R. I have R 3.3.0. I followed the troubleshooting instructions to load with R --vanilla and remove.packages (biocInstaller) etc. and it still doesn't work. And I have looked at other posts where other people have struggled and I still can't seem to figure it out.
R version 3.3.0 (2016-05-03) -- "Supposedly Educational"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-w64-mingw32/x64 (64-bit)
I have done the following:
R -- vanilla
remove.packages("BiocInstaller")
Removing package from ‘C:/Users/Gina D/Documents/R/win-library/3.3’
(as ‘lib’ is unspecified)
Error in remove.packages : there is no package called ‘BiocInstaller’
source("https://bioconductor.org/biocLite.R")
Bioconductor version 3.0 (BiocInstaller 1.16.5), ?biocLite. for help
BiocInstaller version 3.0 is too old for R version 3.3.0;
remove.packages("BiocInstaller") then
source("http://bioconductor.org/biocLite.R")
A new version of Bioconductor is available after
installing the most recent version of R; see
http://bioconductor.org/install
I have tried this in several R sessions. Also, I run biocValid() and the same packages (179 of them) are out of date every time, so it's not saving the updated ones after running biocLite() ?
Please any advice at what I am doing wrong would be great.
Thank you for sharing that! There are 2 paths -one under the Program Files (administrator) which has a library and the exe files, and one where I have my package library under my user. I think I have to re-install R because trying to move things I caused the 'fatal error: no base package' message. Is it regular practice to have two copies of the library like that? Maybe I've just been updating my R wrong every time...
There is always a library path associated with the location R is installed, e.g., under Program Files. If R detects that the current user can't install packages at that location, it will ask whether it is OK to create a second path, and will remember that the second path exists. So two paths are normal when R has been installed as one user, and used as another.
For individual workstations, it is better to install R under your regular user account. There will then be a single library path, and all packages can be updated by the regular user.
Ah I see. I just installed it with the rest of my programs, but I can see it making more sense to install it in the user path. Thanks Martin, this was very helpful information!