【发布时间】:2013-11-16 08:01:29
【问题描述】:
我通过 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存在于目录中。
你有什么建议吗?
谢谢。
问候
【问题讨论】:
-
你能尝试不同的路径吗,比如使用 \\ 代替
/,或者使用类似file.path("H:", "R", "R-3.0.1", ...)的东西? -
我的脚本的第一行是 library("rJava") 但我猜 Rscript 路径不能正常工作。