Hi everyone,
I'm running Rstudio/R on a Windows 10 machine and I'm trying to install the clusterProfiler package by running this:
BiocManager::install("clusterProfiler")
However, I keep getting the following error:
* installing * source * package 'DO.db' ...
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
Bug: Package 'S4Vectors' was created for x86_64-pc-linux-gnu
Additionally: Warning messages:
1: Package 'AnnotationDbi' was created under R version 3.6.1
2: Package 'BiocGenerics' was created under R version 3.6.3
3: Package 'Biobase' was created under R version 3.6.1
4: Package 'IRanges' was created under R version 3.6.2
5: Package 'S4Vectors' was created under R version 3.6.3
Execution stopped
ERROR: lazy loading failed for package 'DO.db'
* removing 'C: /SOME/PATH/R/x86_64-pc-linux-gnu-library/3.6/DO.db'
* installing * source * package 'GO.db' ...
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
Bug: Package 'S4Vectors' was created for x86_64-pc-linux-gnu
Additionally: Warning messages:
1: Package 'AnnotationDbi' was created under R version 3.6.1
2: Package 'BiocGenerics' was created under R version 3.6.3
3: Package 'Biobase' was created under R version 3.6.1
4: Package 'IRanges' was created under R version 3.6.2
5: Package 'S4Vectors' was created under R version 3.6.3
Execution stopped
ERROR: lazy loading failed for package 'GO.db'
* removing 'C: /SOME/PATH/R/x86_64-pc-linux-gnu-library/3.6/GO.db
If it helps, here is my sessionInfo():
R version 3.6.0 (2019-04-26)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 18363)
Matrix products: default
locale:
[1] LC_COLLATE=German_Germany.1252 LC_CTYPE=German_Germany.1252 LC_MONETARY=German_Germany.1252
[4] LC_NUMERIC=C LC_TIME=German_Germany.1252
attached base packages:
[1] parallel stats graphics grDevices utils datasets methods base
other attached packages:
[1] Biobase_2.46.0 BiocGenerics_0.32.0
loaded via a namespace (and not attached):
[1] BiocManager_1.30.10 compiler_3.6.0 tools_3.6.0
Can anybody tell me what the problem is here ? Thanks in advance for the help !
Best,
-Mathias
Thanks James. I did something similar to what you suggested. I re-installed my R libraries in a different folder, and used that one to install clusterProfiler, and ti worked ! So now my .libPaths look like this: