clusterProfiler icon indicating copy to clipboard operation
clusterProfiler copied to clipboard

can't find HPO.db, then install HPO.db error

Open RockJC opened this issue 2 years ago • 8 comments

library(clusterProfiler) 错误: package or namespace load failed for ‘clusterProfiler’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]): 不存在叫‘HPO.db’这个名字的程辑包

BiocManager::install("HPO.db")

  • installing source package 'HPO.db' ... ** using staged installation ** R ** inst ** byte-compile and prepare package for lazy loading ** help *** installing help indices ** building package indices ** installing vignettes ** testing if installed package can be loaded from temporary location Warning: Couldn't set cache size: database disk image is malformed Use cache_size = NULL to turn off this warning. Warning: Couldn't set synchronous mode: database disk image is malformed Use synchronous = NULL to turn off this warning. Error: package or namespace load failed for 'HPO.db': .onLoad failed in loadNamespace() for 'HPO.db', details: call: NULL error: database disk image is malformed Error: loading failed Execution halted ERROR: loading failed
  • removing 'D:/R-4.3.1/library/HPO.db'

RockJC avatar Jul 11 '23 06:07 RockJC

I‘ve try to add 'force=TRUE', That's not useful.

RockJC avatar Jul 11 '23 06:07 RockJC

Please use the devel version of Bioconductor to install HPO.db.

if (!require("BiocManager", quietly = TRUE))
    install.packages("BiocManager")

# The following initializes usage of Bioc devel
BiocManager::install(version='devel')

BiocManager::install("HPO.db")

Or install the Github version:

remotes::install_github("YuLab-SMU/HPO.db")

huerqiang avatar Jul 11 '23 14:07 huerqiang

library(clusterProfiler) 错误: package or namespace load failed for ‘clusterProfiler’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]): 不存在叫‘HPO.db’这个名字的程辑包

BiocManager::install("HPO.db")

  • installing source package 'HPO.db' ... ** using staged installation ** R ** inst ** byte-compile and prepare package for lazy loading ** help *** installing help indices ** building package indices ** installing vignettes ** testing if installed package can be loaded from temporary location Warning: Couldn't set cache size: database disk image is malformed Use cache_size = NULL to turn off this warning. Warning: Couldn't set synchronous mode: database disk image is malformed Use synchronous = NULL to turn off this warning. Error: package or namespace load failed for 'HPO.db': .onLoad failed in loadNamespace() for 'HPO.db', details: call: NULL error: database disk image is malformed Error: loading failed Execution halted ERROR: loading failed
  • removing 'D:/R-4.3.1/library/HPO.db'

Has the problem been solved? I met the same problem now

zxf2046 avatar Aug 31 '23 12:08 zxf2046

Please use the devel version of Bioconductor to install HPO.db.

if (!require("BiocManager", quietly = TRUE))
    install.packages("BiocManager")

# The following initializes usage of Bioc devel
BiocManager::install(version='devel')

BiocManager::install("HPO.db")

Or install the Github version:

remotes::install_github("YuLab-SMU/HPO.db")

I have the same problem and use your method , but it can not solve the problem.

xiexielaifang avatar Sep 02 '23 16:09 xiexielaifang

Please make sure you are using the devel version of Bioconductor:

BiocManager::install(version='devel')

huerqiang avatar Sep 03 '23 05:09 huerqiang

Clearing the local cache of AnnotationHub may work:

ah <- AnnotationHub::AnnotationHub()
AnnotationHub::removeCache(ah)

pormr avatar Sep 20 '23 09:09 pormr

Clearing the local cache of AnnotationHub may work:

ah <- AnnotationHub::AnnotationHub()
AnnotationHub::removeCache(ah)

Finally!!! Thank you so much! I have tried so many times before...

pengouy avatar Sep 25 '23 09:09 pengouy

l

you saved me, my bro

todaroroad avatar Jul 19 '24 05:07 todaroroad