There was a bug reported relating to BiocFileCache compatibility with the new version dbplyr. This affected BiocFileCache, ExperimentHub, and AnnotationHub. This has already been corrected in BiocFileCache versions 2.10.1 (Release_3_18) and 2.11.1 (devel/3.19) respectively. These versions were pushed up this morning and should be available after tomorrow's daily build. You can install from BiocFileCache github as a temporary workaround for the next 24 hours. Sorry for the inconvenience.
Kindly help:
I am getting this error when I try to run this code: ah <- AnnotationHub()
Error in
collect()
: ! Failed to collect lazy table. Caused by error indb_collect()
Do you have any suggestions?
Note that I have R version 4.3.1 and 2023.09.1 Build 494
I was getting a similar error when running
hub <- AnnotationHub()
on one machine but not another.On an RStudio Server running R version 4.3.0 (2023-04-21) [platform: x86_64-pc-linux-gnu], the above command works, returning
snapshotDate(): 2023-04-25
.On RStudio on my Mac running R version 4.3.1 (2023-06-16) [platform: x86_64-apple-darwin20], the above command returned:
I noticed that I had BiocFileCache 2.8.0 in both implementations, so I tried to update the package to 2.11.0 in RStudio on my Mac by running
BiocManager::install(pkgs = c("BiocFileCache"), update = TRUE)
, but that didn't update the package, responding that I already had the most update package. However, when I ranBiocManager::install("Bioconductor/BiocFileCache")
, the package did update to 2.11.0.After restarting RStudio, I found that the above command does work now, returning
snapshotDate(): 2023-04-25
.Would this work for R version 4.2.1? I am afraid upgrading R might cause a whole lot of dependency issues with other packages in my ongoing project.
Installing the package manually should work with the latest BiocFileCache
BiocManager::install("Bioconductor/BiocFileCache")
, but you will not be able to get it using justBiocManager("BiocFileCache")
since R/Bioc/packages are closely tied to an R release the default will always make it appropriate for your version of R; it is not guaranteed to work correctly if not running on the current R with the appropriately tested package dependencies but it should.update
BiocFileCache
and then restarting Rstudio, it did work! Thanks for your solution!Thank you so much for these comment! I had the same issue and downloaded the source file to update and also needed to restart RStudio even though it appeared to update the package, still needed to restart.