您知道在Windows10中应为R 3.6.3安装哪个Rtools版本?

时间:2020-04-09 01:59:19

标签: r rtools

我已经安装了Rtools35。但是在安装Rtools35之后,它在Rstudio中连续发生错误。

此错误如下:

extension<-ifelse(isWindows, ".dll", ".so") 
dyn.load(paste0("D:/Platanus/CiPA_Rocde/CiPA-master/AP_simulation/models/newordherg_qNet",extension)) 

Error in inDL(x, as.logical(local), as.logical(now), ...) :
unable to load shared object 'D:/Platanus/CiPA_Rocde/CiPA-master/AP_simulation/models/newordherg_qNet.dll' 
LoadLibrary failure: The specified module could not be found.

要解决上述错误,我需要检查可疑的东西。

[1。 Rtool版本问题] 可能是...。是否由于Rtool版本而发生错误?

我正在使用基于window10的R 3.6.3版本和Rtool35版本。

您知道在Windows10(64位)中应为R 3.6.3安装哪个Rtools版本吗?

我可以安装Rtools35吗?或我可以安装Rtools40吗?

[1。问题解决方案] 我检查了如下提到的@ r2evans意见,因此我将继续使用Rtool35。

[2。 R CMD SHLIB在window10中的powershell中编译错误] 为了获取.dll文件,我在window10的powershell中编译了newordherg_qNet.c。 编译后,发生如下错误。

-运行错误示例

PS D:\Platanus\CiPA_Rocde\CiPA-master\AP_simulation\models> R CMD SHLIB newordherg_qNet.c
Invoke-History : 'SHLIB' It couldn't find location parameter permitting factor.  
Location line : 1 character : 1
+ R CMD SHLIB newordherg_qNet.c
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : InvalidArgument: (:) [Invoke-History], 
ParameterBindingException
+ FullyQualifiedErrorId : 

PositionalParameterNotFound,Microsoft.PowerShell.Commands.InvokeHistoryCommand


尽管我找到了与R CMD SHLIB问题相关的解决方案,但很难解决该问题。您有解决错误的想法吗?

0 个答案:

没有答案