error: unable to load installed packages just now

前端 未结 11 1986
没有蜡笔的小新
没有蜡笔的小新 2020-11-30 21:17

When I tried to run the R console in Eclipse, I got this error:

....Please make sure that R package \'rj\' (1.1 or compatible) is installed...
11条回答
  •  感动是毒
    2020-11-30 22:02

    or just set the library in R?

    I just ran this command in R:

    Sys.setenv(JAVA_HOME='/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/server')
    

    (replace "/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/server" with your Java library path which can be found running "sudo R CMD javareconf")

    Might not be the most elegant solution - but it worked for me!

提交回复
热议问题