如何解决“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软件包时,我们需要确认它是否安装正确。如果有人有上述错误,我想建议重新安装相应的元素和重新启动电脑。谢谢您的回答。