当我尝试在Eclipse中运行R控制台时,出现此错误:
....Please make sure that R package 'rj' (1.1 or compatible) is installed...
Run Code Online (Sandbox Code Playgroud)
所以我试着在R控制台中安装它,如下所示:
install.packages(c("rj", "rj.gd"), repos="http://download.walware.de/rj-1.1")
Run Code Online (Sandbox Code Playgroud)
并得到此错误:
** testing if installed package can be loaded
Error : .onLoad failed in loadNamespace() for 'rj.gd', details:
call: dyn.load(file, DLLpath = DLLpath, ...)
error: unable to load shared object '/home/alex/R/x86_64-pc-linux-gnu-library/2.15/rj.gd/libs/rj.gd.so':
libjvm.so: cannot open shared object file: No such file or directory
Error: loading failed
Execution halted
ERROR: loading failed
Run Code Online (Sandbox Code Playgroud)
我发现在使用时安装rJava:install.packages("rJava")得到类似的错误:
** testing if installed package can be loaded
Error : …Run Code Online (Sandbox Code Playgroud)