Closed Samantha-Czn closed 3 years ago
Hi,
What the output of sessionInfo()
after you get the error? My guess is that you have version mismatches, that is, you have packages with incompatible versions e.g. some packages belong to BioC 3.12 or 3.10 (e.g. S4Vectors and/or IRanges) while others belong to BioC 3.11 (e.g. BiocManager). Calling BiocManager::valid()
will report this kind of issue.
Also please note that only the current release version of Bioconductor is supported. This is BioC 3.12. Older versions are not.
Best, H.
Yep I think you're right - I think it was S4Vectors that was creating the issue. When I ran BiocManager::valid()
it told me that S4Vectors was "too new", so reinstalling the version previous to the current release fixed the issue. Thank you for your help
I am still getting a similar issue when trying to install DelayedArray.
The code I run is: BiocManager::install("DelayedArray")
The output I get is:
'getOption("repos")' replaces Bioconductor standard repositories, see 'help("repositories", package = "BiocManager")' for details. Replacement repositories: CRAN: http://cran.rstudio.com/ Bioconductor version 3.16 (BiocManager 1.30.20), R 4.2.3 (2023-03-15 ucrt) Installing package(s) 'DelayedArray'
There is a binary version available but the source version is later: binary source needs_compilation DelayedArray 0.23.2 0.24.0 TRUE
installing the source package ‘DelayedArray’
trying URL 'https://bioconductor.org/packages/3.16/bioc/src/contrib/DelayedArray_0.24.0.tar.gz' Content type 'application/x-gzip' length 642972 bytes (627 KB) downloaded 627 KB
The downloaded source packages are in ‘C:\Users\91836\AppData\Local\Temp\RtmpCeowqc\downloaded_packages’ Installation paths not writeable, unable to update packages path: C:/Program Files/R/R-4.2.3/library packages: lattice, MASS, Matrix, survival Warning message: In install.packages(...) : installation of package ‘DelayedArray’ had non-zero exit status
When I run BiocManager::valid()
I get; [1] TRUE
What should I try next?
I am still getting a similar issue when trying to install DelayedArray.
What I see is that you're getting a compilation error on Windows. This has not much to do with the original issue.
Installing packages from source on Windows requires that your machine has been carefully set up for that. Are you able to install from source any package at all that has C/C++ code? Maybe you could try with CRAN packages like zoo and Rcpp:
install.packages("zoo", type="source")
install.packages("Rcpp", type="source")
This will confirm that you have the correct setup.
Otherwise, just install the Windows binary for DelayedArray, even if its version is slightly behind the source version.
Are you able to install from the source any package at all that has C/C++ code?
You're right. I cannot install any package from the source that has C/C++ code. How can I correct the Setup so that I can install these packages correctly?
Otherwise, just install the Windows binary for DelayedArray, even if its version is slightly behind the source version.
I did this, but this is causing as an error when I run certain Bioconductor packages since DelayedArray is not up to date. Is there a way I can bypass this issue and still make it work, even with a binary version of DelayedArray
Unfortunately, for some reason the binary version available in BioC 3.16 is lagging behind the source version: https://bioconductor.org/packages/3.16/DelayedArray (see Package Archives at bottom of page)
However, if you were to switch to BioC 3.17 (which I highly recommend), then the DelayedArray binary for Windows is up to date: https://bioconductor.org/packages/3.17/DelayedArray (see Package Archives at bottom of page)
Note that BioC 3.17 will officially be released next week but you can already install and use it. It requires R 4.3.0 which will be released in the next couple of days (the release candidate for Windows is available here).
Cheers, H.
Hi, I'm having trouble installing DelayedArray for R version 4.0.2. These are the errors and warnings I get:
It installs fine on R/3.6.3 but not on 4.0.2. Is there anything I can do to fix this?
Thank you
(The full input and output is:
)