Entering edit mode
When I try to install GOSemSim I get the following error with S4Vectors
> BiocManager::install("GOSemSim")
Bioconductor version 3.8 (BiocManager 1.30.4), R 3.5.2 (2018-12-20)
Installing package(s) 'GOSemSim'
trying URL 'https://bioconductor.org/packages/3.8/bioc/src/contrib/GOSemSim_2.8.0.tar.gz'
Content type 'application/x-gzip' length 604232 bytes (590 KB)
==================================================
downloaded 590 KB
* installing *source* package ‘GOSemSim’ ...
** libs
g++ -I"/usr/share/R/include" -DNDEBUG -I"/home/sergi/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include" -fpic -g -O2 -fdebug-prefix-map=/build/r-base-i39faS/r-base-3.5.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c ICmethod.cpp -o ICmethod.o
g++ -I"/usr/share/R/include" -DNDEBUG -I"/home/sergi/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include" -fpic -g -O2 -fdebug-prefix-map=/build/r-base-i39faS/r-base-3.5.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c RcppExports.cpp -o RcppExports.o
g++ -shared -L/usr/lib/R/lib -Wl,-Bsymbolic-functions -Wl,-z,relro -o GOSemSim.so ICmethod.o RcppExports.o -L/usr/lib/R/lib -lR
installing to /home/sergi/R/x86_64-pc-linux-gnu-library/3.5/GOSemSim/libs
** R
** data
** inst
** byte-compile and prepare package for lazy loading
Error : object ‘elementLengths’ is not exported by 'namespace:S4Vectors'
ERROR: lazy loading failed for package ‘GOSemSim’
* removing ‘/home/sergi/R/x86_64-pc-linux-gnu-library/3.5/GOSemSim’
What am I doing wrong? Thank you
Session info (after loading S4Vectors):
> sessionInfo()
R version 3.5.2 (2018-12-20)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 18.04.2 LTS
Matrix products: default
BLAS: /usr/lib/x86_64-linux-gnu/openblas/libblas.so.3
LAPACK: /usr/lib/x86_64-linux-gnu/libopenblasp-r0.2.20.so
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
[3] LC_TIME=es_ES.UTF-8 LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=es_ES.UTF-8 LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=es_ES.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=es_ES.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] parallel stats4 stats graphics grDevices utils datasets
[8] methods base
other attached packages:
[1] S4Vectors_0.20.1 BiocGenerics_0.28.0
loaded via a namespace (and not attached):
[1] BiocManager_1.30.4 compiler_3.5.2 tools_3.5.2
did you try updating S4Vectors package? The problem seems to be a change on that package that it is needed by GOSemSim
Yes, it is already in its latest version
0.20.1
(https://bioconductor.org/packages/release/bioc/html/S4Vectors.html)What is the result of
BiocManager::valid()
?Hello, I've encountered the same issue and tried to follow your suggested solution. However, by running
BiocManager::valid()
I got an error:Do you have an idea how to fix it? Thank you!
What is your
sessionInfo()
?Yesterday when I restarted the R session there were no error anymore in the results of
BiocManager::valid()
and I was able to install GOSemSim. However, just now when I tried to ransessionInfo()
orBiocManager::valid()
the same error appeared. Though my issue concerning to the subject is solved, I would like to understand what happened to my R. Appreciation in advance from a beginner in bioinfo :)Below is the output of
sessionInfo()
.I believe the underlying problem is that some packages are installed with a previous or future version of R;
BiocManager::valid()
should report these, and it's not clear why this would clear up yesterday but re-appear today. Maybe you have two versions of R that are sharing the same.libPaths()
?I only have one version of R. But by
.libPaths()
I've realized that my packages were installed in two different directories.I found this page where there's your answer as well, and consider remove packages from the 2nd directory with administrative rights and reinstall them into the first one to solve the packages update issue.
Still don't understand what happened to make that
Error in x[["Version"]] : subscript out of bounds
disappear and reappear though =_=This is the output. I will try to update the out-of-date packages
Please let us know if you continue to have issues after correcting to a valid install.
It's working now - thank you very much for a prompt and precise help! I ran the following chunk: