我正在尝试在 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'
我阅读了类似的问题并手动安装了“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")
rtools40/home 中没有更多文件夹。我没有在上面的地址中得到 usr\bin...。但是当我想验证是否make
可以找到(Sys.which("make")
)时,我得到了这个:
> Sys.which("make")
make
""
此外,Seurat 的下载包保存在我的计算机中甚至不存在的位置!这怎么可能?我怎样才能解决这个问题?
谢谢