包Rmpi已经安装,但R返回;装载所需包装:Rmpi“;
我正在尝试运行并行计算。因此,我安装了包包Rmpi已经安装,但R返回;装载所需包装:Rmpi“;,r,package,R,Package,我正在尝试运行并行计算。因此,我安装了包Rmpi install.packages("Rmpi") require("Rmpi") 你能解释一下为什么在我刚安装软件包时会出现这样的错误信息吗 WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version o
Rmpi
install.packages("Rmpi")
require("Rmpi")
你能解释一下为什么在我刚安装软件包时会出现这样的错误信息吗
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/Dung Le/Documents/R/win-library/4.0�
(as �lib� is unspecified)
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/Rmpi_0.6-9.zip'
Content type 'application/zip' length 353588 bytes (345 KB)
downloaded 345 KB
package ‘Rmpi’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\Dung Le\AppData\Local\Temp\RtmpGm7Riu\downloaded_packages
Loading required package: Rmpi
Error: package or namespace load failed for �Rmpi�:
.onLoad failed in loadNamespace() for 'Rmpi', details:
call: inDL(x, as.logical(local), as.logical(now), ...)
error: unable to load shared object 'C:/Users/Dung Le/Documents/R/win-library/4.0/Rmpi/libs/x64/Rmpi.dll':
LoadLibrary failure: The specified module could not be found.
PS:我使用Windows10Pro版本2004和版本19041.508。我的R是4.0.2。我发现带有空格的目录路径存在问题(请参阅),其中
../Dung Le/..
是罪魁祸首。我建议您在其他地方创建一个没有空间的目录。(先发制人:不要在base R安装的库目录中安装程序包。即使其中没有空间(默认情况下是这样),这仍然是一种不好的做法。)顺便说一句,require
在这里使用不正确,请参阅。@r2evans我刚刚更改了将库复制到另一个没有名称空间的文件夹中。然后我使用.libpath(“C:/win library/4.0”)
。错误不断出现。我已检查并验证文件Rmpi.dll
是否存在于文件夹'C:/Users/Dung Le/Documents/R/win library/4.0/Rmpi/libs/x64
中。是韦尔夫。