Options

R extension doesn't see libraries

lminerlminer Member Posts: 2 Contributor I
edited November 2018 in Help
I've gotten the R extension to run, but I can't run any of my scripts because it doesn't see any of my libraries. For example I get this error:

Error in library(plyr) : there is no package called 'plyr'

Also it seems to be running the 32-bit version as I get a memory error as well: Reached total allocation of 2047Mb: see help(memory.size)

My paths are as follows:
PATH: C:\Program Files\R\R-3.0.2\bin\x64\;C:\Program Files\R\R-3.0.2\library\;C:\Users\lminer\Documents\R\win-library\3.0\
JAVA_HOME: C:\Program Files\Java\jre7
R_HOME: C:\Program Files\R\R-3.0.2

Any ideas as to what is going wrong?

Answers

  • Options
    robert99robert99 Member Posts: 15 Contributor II
    Have you also installed a 64 bit version of Java?

    RapidMiner 64bit seems to run on Java 32 bit but the R extension won't run properly  unless all 3 components R, RapidMiner and Java are all 64 bit or all 32 bit.

    I have both 32bit and 64 bit Java running and it seems to work OK.
  • Options
    lminerlminer Member Posts: 2 Contributor I
    Yeah it's set to Java 64. I do have the JDK installed as well, do I need to set it to that instead?
  • Options
    MariusHelfMariusHelf RapidMiner Certified Expert, Member Posts: 1,869 Unicorn
    No, the JRI should be fine. Are you using the 64 bit version of rJava's jri.dll?

    Best regards,
    Marius
Sign In or Register to comment.