Hello,
In installing "RforProteomics" package I faced with the below Error:
> source("http://www.bioconductor.org/biocLite.R")
> library("BiocInstaller")
> biocLite("RforProteomics", dependencies = TRUE)
The downloaded source packages are in
‘C:\Users\fsgh1d18\AppData\Local\Temp\RtmpEJpIkX\downloaded_packages’
Warning message:
In install.packages(pkgs = doing, lib = lib, ...) :
installation of package ‘RforProteomics’ had non-zero exit status
> library("RforProteomics")
Loading required package: MSnbase
Error: package or namespace load failed for ‘MSnbase’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
there is no package called ‘colorspace’
Error: package ‘MSnbase’ could not be loaded
Then, I tried to install "MSnbase" package. Again, I faced another problem (you can see the below Error):
> biocLite("MSnbase", dependencies = TRUE)
> library("MSnbase")
Loading required package: BiocParallel
Error: package or namespace load failed for ‘MSnbase’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
there is no package called ‘colorspace’
I am also attaching the output from my sessionInfo():
> sessionInfo()
R version 3.5.2 (2018-12-20)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200)
Matrix products: default
locale:
[1] LC_COLLATE=English_United Kingdom.1252 LC_CTYPE=English_United Kingdom.1252
[3] LC_MONETARY=English_United Kingdom.1252 LC_NUMERIC=C
[5] LC_TIME=English_United Kingdom.1252
attached base packages:
[1] stats4 parallel stats graphics grDevices utils datasets methods base
other attached packages:
[1] BiocParallel_1.16.5 BiocInstaller_1.30.0 BiocManager_1.30.4 ProtGenerics_1.14.0
[5] S4Vectors_0.20.1 mzR_2.16.1 Rcpp_1.0.0 Biobase_2.42.0
[9] BiocGenerics_0.28.0
loaded via a namespace (and not attached):
[1] codetools_0.2-16 grid_3.5.2 ncdf4_1.16 impute_1.56.0 tools_3.5.2
[6] yaml_2.2.0 compiler_3.5.2
I am using a laptop which is connected to my university network. But, I have also the same problem with my own laptop (which in not connected to the university network) when I am trying to install these packages.
Would you please help me what is the problem for? and how can I solve it?
Thank you very much.
In addition to @SamGG's answer, you could also try to set up a different CRAN mirror. Using
0-Cloud [https]
(the first option) withchooseCRANmirror()
allows me to runBiocManager::install("colorspace")
successfully.