发现网上没有安装treedataverse的教程,只有简单的一句
BiocManager::install("YuLab-SMU/treedataverse")
但我一直报错,更新依赖包也会有些包出现Permission denied的情况,比如:
Warning messages:
1: In file.copy(savedcopy, lib, recursive = TRUE) :
problem copying E:\R\R-4.2.1\library\00LOCK\cli\libs\x64\cli.dll to E:\R\R-4.2.1\library\cli\libs\x64\cli.dll: Permission denied
2: In i.p(...) :
安装程序包‘C:/Users/DELL/AppData/Local/Temp/RtmpEjVNOE/filece505e175180/treedataverse_0.0.1.tar.gz’时退出狀態的值不是0
3: In file.copy(savedcopy, lib, recursive = TRUE) :
problem copying E:\R\R-4.2.1\library\00LOCK\cli\libs\x64\cli.dll to E:\R\R-4.2.1\library\cli\libs\x64\cli.dll: Permission denied
4: In file.copy(savedcopy, lib, recursive = TRUE) :
problem copying E:\R\R-4.2.1\library\00LOCK\curl\libs\x64\curl.dll to E:\R\R-4.2.1\library\curl\libs\x64\curl.dll: Permission denied
5: In file.copy(savedcopy, lib, recursive = TRUE) :
problem copying E:\R\R-4.2.1\library\00LOCK\processx\libs\x64\processx.dll to E:\R\R-4.2.1\library\processx\libs\x64\processx.dll: Permission denied
6: In file.copy(savedcopy, lib, recursive = TRUE) :
problem copying E:\R\R-4.2.1\library\00LOCK\ps\libs\x64\ps.dll to E:\R\R-4.2.1\library\ps\libs\x64\ps.dll: Permission denied
尝试重启Rstudio重新安装这些Permission denied的包,可以用这个命令,替换一下包的名字就行
install.packages("cli", dependencies=TRUE, type="binary")
但是我需要更新的依赖包实在是太多了,安不过来,最后是用devtools安装的
library(devtools)
devtools::install_github("YuLab-SMU/treedataverse")
如果你用BiocManager也不能安装,推荐使用devtools,使用devtools还安不上的话,不要用Rstudio安装,以管理员身份运行R,在R里安装即可。