【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/


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM