How can I install an older version of affy in order to install CellNet?
1
0
Entering edit mode
6.8 years ago
tannaz • 0

I have this problem with installing CellNet. I keep having this eror:


Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : namespace ‘affy’ 1.54.0 is being loaded, but <= 1.36.1 is required ERROR: lazy loading failed for package ‘cellnetr’


so I tried to install affy 1.36.1 yet there is another error like below:


Error : object ‘@<-’ is not exported by 'namespace:methods' ERROR: lazy loading failed for package ‘affy’


what can I do?

p.s I have R 3.4.0 installed.

R software error • 2.2k views
ADD COMMENT
1
Entering edit mode
6.8 years ago

Install a new version of R locally, with the right version of BioConductor ( https://www.bioconductor.org/help/search/index.html?q=affy/ ), which has got the right version affy

ADD COMMENT
0
Entering edit mode

I installed BioConductor 2.11 (hopefully the right one!) with this command:

install.packages("BiocInstaller", repos="http://bioconductor.org/packages/2.11/bioc")

after that I install affy but it was 1.38.1 instead of 1.36.1!!

ADD REPLY
1
Entering edit mode

Hmmmm... Either move to lower version of BioC or install from source, after dloading the affy source from https://www.bioconductor.org/packages/2.11/bioc/src/contrib/affy_1.36.1.tar.gz

install.packages(path_to_file, repos = NULL, type="source")

ADD REPLY
0
Entering edit mode

I've already tried this. I got this error:

installing to /home/tannaz/R/x86_64-pc-linux-gnu-library/3.4/affy/libs * R * data * demo * inst ** preparing package for lazy loading Error : object ‘@<-’ is not exported by 'namespace:methods' ERROR: lazy loading failed for package ‘affy’ * removing ‘/home/tannaz/R/x86_64-pc-linux-gnu-library/3.4/affy’ Warning in install.packages : installation of package ‘/home/tannaz/R/x86_64-pc-linux-gnu-library/3.4/affy_1.36.1.tar.gz’ had non-zero exit status

ADD REPLY
1
Entering edit mode

Could you also check your version of BioC.

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

affy 1.38.1 is default for BioC 2.12!

ADD REPLY
1
Entering edit mode

Your BioC install method is not correct. First you need to install the corresponding version of R, then use

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

This will get the right version of BioC.

You may also try installing right version of affy by src https://www.bioconductor.org/packages/2.11/bioc/src/contrib/affy_1.36.1.tar.gz

install.packages(path_to_file, repos = NULL, type="source")

However, I am afraid that there is something changed in the Base R, that is why you are getting this error [ object ‘@<-’ is not exported by 'namespace:methods' ]. So your last and only solution might be the re installation of a lower version of R locally

https://unix.stackexchange.com/questions/149451/install-r-in-my-own-directory

ADD REPLY
0
Entering edit mode

Aha got it. Thanks a lot.

ADD REPLY
0
Entering edit mode

yeah! you're right! it seems BioC 2.12 is installed! but this is the command that I used and as you see I typed "2.11" !!

install.packages("BiocInstaller", repos="http://bioconductor.org/packages/2.11/bioc")

ADD REPLY

Login before adding your answer.

Traffic: 2044 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