Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/variables/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何解决“R CMD SHLIB”错误_R_Powershell_Dll - Fatal编程技术网

如何解决“R CMD SHLIB”错误

如何解决“R CMD SHLIB”错误,r,powershell,dll,R,Powershell,Dll,运行错误示例: 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 + ~

运行错误示例:

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问题相关的解决方案,但很难解决该问题。你有解决错误的办法吗

最好有一个可行的例子。newordherg_qNet.c的第1行是什么?它应该看起来像R代码的标准头-

#include <R.h>
#include <Rinternals.h>
我会查看哈德利的C页面- 您还可以使用Rcpp运行我见过的C代码。
无论如何,希望它能有所帮助。

那么这个解决方案解决了这个问题吗?我没有解决上面的错误。我已经解决了上面的问题。该错误只是因为我的电脑中与系统类型相关的问题。在安装R和Rstudio以及R软件包时,我们需要确认它是否安装正确。如果有人有上述错误,我想建议重新安装相应的元素和重新启动电脑。谢谢您的回答。