1

我通过 Eclipse 运行 R 3.0.1 并且没有问题。我尝试使用 Rscript.exe 执行我的一些 R 脚本,但出现以下错误:

Error : .onLoad failed in loadNamespace() for 'rJava', details:
call: inDL(x, as.logical(local), as.logical(now), ...)
error: unable to load shared object 'H:/R/R-3.0.1/library/rJava/libs/x64/rJava.dll':
LoadLibrary failure:  The specified path is invalid.

我已经检查并且该 DLL 存在于目录中。

你有什么建议吗?

谢谢。

问候

4

1 回答 1

4

通过添加解决

if (Sys.getenv("JAVA_HOME")!="")
    Sys.setenv(JAVA_HOME="")
于 2013-11-05T14:57:45.007 回答