我正在尝试在R中下载“ Seurat”软件包,该软件包已安装,并且现在在我的软件包列表中。
** testing if installed package keeps a record of temporary installation path
* DONE (patchwork)
The downloaded source packages are in
‘C:\Users\parnian\AppData\Local\Temp\RtmpAVgSd8\downloaded_packages’
但是当我尝试调用它(library(Seurat))时,出现以下错误:
> library(Seurat)
Error: package or namespace load failed for ‘Seurat’:
object ‘wrap_plots’ is not exported by 'namespace:patchwork'
我阅读了类似的问题,并手动安装了“补缀品”:
> install.packages("patchwork")
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:
https://cran.rstudio.com/bin/windows/Rtools/
Installing package into ‘C:/Users/parnian/Documents/R/win-library/4.0’
(as ‘lib’ is unspecified)
R还告诉我要安装我拥有的Rtools,但是当我遵循以下命令时:
> writeLines('PATH="${RTOOLS40_HOME}\\usr\\bin;${PATH}"', con = "~/.Renviron")
但是当我想验证是否可以找到make
(Sys.which("make")
)时,我得到了:
> Sys.which("make")
make
""
我下载的软件包也保存在我的计算机根本不存在的位置! 我该如何解决?
谢谢
答案 0 :(得分:0)
完成后
> writeLines('PATH="${RTOOLS40_HOME}\\usr\\bin;${PATH}"', con = "~/.Renviron")
你应该重启 R。
那么 Sys.which("make")
可能会起作用。