【R报错】解决Linux下安装clusterProfiler:object 'get_fun_from_pkg' not found

报错

R version 4.0.3

$R
BiocManager::install("clusterProfiler")

Error in get(name, envir = asNamespace(pkg), inherits = FALSE) :
  object 'get_fun_from_pkg' not found
Error: unable to load R code in package ‘clusterProfiler’
Execution halted
ERROR: lazy loading failed for package ‘clusterProfiler’

解决

原因是rvcheck版本太旧。

1.重新安装rvcheck

packageurl <- "https://cran.r-project.org/src/contrib/Archive/rvcheck/rvcheck_0.1.8.tar.gz"
install.packages(packageurl, repos=NULL, type="source")
remove.packages("clusterProfiler")
if (!requireNamespace("BiocManager", quietly = TRUE))
    install.packages("BiocManager")
BiocManager::install("clusterProfiler")

2.用conda

conda install -c bioconda bioconductor-clusterprofiler

Ref:
https://support.bioconductor.org/p/9139765/

posted @ 2022-03-17 16:49  生物信息与育种  阅读(854)  评论(0编辑  收藏  举报