问题描述
我有一个bat文件,该文件已经在命令行中成功运行了一段时间,该文件调用R,然后调用R脚本。最近失败了,感觉好像和程序包加载有关。我有R版本3.2.3(2015-12-10)和RStudio版本0.99.489。
I have a bat file that I have run successfully for some time from the command line, which calls R and then an R script. It has failed lately, and it feels like it has something to do with package loading. I have R version 3.2.3 (2015-12-10) and RStudio Version 0.99.489.
错误显然是在程序包加载时发生的,但不是R错误,而是查找各种.dll的错误,结尾为0x7e错误。不确定为什么R / Windows正在寻找dll(?!)。
The errors occur apparently as packages are being loaded, but they are not R errors, but rather errors looking for a variety of .dll's, ending in an 0x7e error. Not sure why R/Windows is looking for dll's (?!).
我也尝试用Google搜索 LoadLibraryFromPath函数,但没有结果。
I also tried to google the "LoadLibraryFromPath" function, but got nowhere.
以下是cmd窗口的输出:
Here is the cmd window output:
Warning message:
package 'ggplot2' was built under R version 3.1.3
Warning message:
package 'scales' was built under R version 3.1.3
Loading required package: zoo
Attaching package: 'zoo'
The following objects are masked from 'package:base':
as.Date, as.Date.numeric
Warning message:
package 'rkt' was built under R version 3.1.2
Loading required package: methods
LoadLibraryFromPath: FQ Dll C:\Windows\system\oci.dll is not found, error: 0x7e
LoadLibraryFromPath: FQ Dll C:\Windows\oci.dll is not found, error: 0x7e
LoadLibraryFromPath: FQ Dll C:\ProgramData\Oracle\Java\javapath\oci.dll is not f
ound, error: 0x7e
LoadLibraryFromPath: FQ Dll C:\Program Files (x86)\TIBCO\splus82\oci.dll is not
found, error: 0x7e
LoadLibraryFromPath: FQ Dll C:\app\product\11.2.0\client_1\bin\oci.dll found
LoadLibraryFromPath: FQ Dll C:\Windows\system\SQLLib80.dll is not found, error:
0x7e
LoadLibraryFromPath: FQ Dll C:\Windows\SQLLib80.dll is not found, error: 0x7e
LoadLibraryFromPath: FQ Dll C:\ProgramData\Oracle\Java\javapath\SQLLib80.dll is
not found, error: 0x7e
LoadLibraryFromPath: FQ Dll C:\Program Files (x86)\TIBCO\splus82\SQLLib80.dll is
not found, error: 0x7e
LoadLibraryFromPath: FQ Dll C:\app\product\11.2.0\client_1\bin\SQLLib80.dll is n
ot found, error: 0x7e
LoadLibraryFromPath: FQ Dll C:\Windows\system32\SQLLib80.dll is not found, error
: 0x7e
LoadLibraryFromPath: FQ Dll C:\Windows\SQLLib80.dll is not found, error: 0x7e
.
.
.
有什么想法吗?
推荐答案
当我发现这篇文章时,我已经在为客户调试此问题。现在,在与Microsoft产品团队合作之后,我可以确认您描述的问题已解决,并且现在有望通过16年4月12日通过KB 3147071发布。随时注意!
I have been debugging this problem for a customer when I found this post. Now after working with the Microsoft product team I can confirm the issue you have described has been addressed and is now expected to be released through KB 3147071 on 4/12/16. Be on the lookout!
这篇关于在cmd窗口中运行R脚本时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!