> BiocManager::install("clusterProfiler")
'getOption("repos")' replaces Bioconductor standard repositories, see
'?repositories' for details
replacement repositories:
CRAN: https://cran.rstudio.com/
Bioconductor version 3.12 (BiocManager 1.30.16), R 4.0.5 (2021-03-31)
Installation paths not writeable, unable to update packages
path: C:/Program Files/R/R-4.0.5/library
packages:
boot, class, cluster, KernSmooth, lattice, MASS, Matrix, mgcv, nlme, nnet,
spatial, survival
本以为安装好了,结果加载时报错。而且library函数tab无法补出clusterProfiler,推测是没有安装好。
> library(clusterProfiler)
错误: package or namespace load failed for ‘clusterProfiler’:
'namespace:rvcheck'没有出口‘get_fun_from_pkg’这个对象
以为是没有更新上面的几个R包,根据提示,更改了上述R包路径的权限,然后成功更新了R包。继续library(clusterProfiler),这时用tab可以补出clusterProfiler了,结果还是报上述错误。
最后没有办法,把R软件更新了,所有包都重新装,成功安装了clusterProfiler包,加载成功。