【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