"R extension"

NJS
NJS New Altair Community Member
edited November 5 in Community Q&A
Hello,

I got problem installing R extension in RM.

I use R 2.14 64bits and RM 5.1 64bits.
Window7

Variables set:
JAVA_HOME: C:\Program Files\Java\jre6\bin
R_HOME: C:\Program Files\R\R-2.14.0

When starting RM, I got the R extension instructions but it never worked (failed to load R library.

Somebody could help?

Thanks a lot,

Nathalie

Answers

  • MariusHelf
    MariusHelf New Altair Community Member
    Hi Nathalie,

    do you see any error messages? Please check also the log view in RapidMiner. If you find any error messages, please post them here.

    Kind regards,
    Marius
  • haddock
    haddock New Altair Community Member
    Hi there Natalie,

    I see you have 64 bit Java, if your R installation is not also 64 bit then you will get a system load error. I'm writing a Cuda plugin which needs to be 64 bit, and if my Java isn't also 64 bit I get this sort of error.

    Just a thought.
  • NJS
    NJS New Altair Community Member
    Thanks for your answer. I got R 64bits as well as RM 64bits.

    Running the RM console, I got the arror message below. Pretty long message but maybe it could help to get the problem solved...

    Thanks a lot for your help,

    Nathalie


    C:\Users\Nathalie\AppData\Local\Temp\RtmpWydhV8\downloaded_packages

    [1] "C:/Users/Nathalie/Documents/R/win-library/2.14"
    [2] "C:/Program Files/R/R-2.14.0/library"   


    RAPIDMINER_HOME is not set. Trying the directory 'C:\Program Files\Rapid-I\Rapid
    Miner5\scripts\..'...
    Using local jre: C:\Program Files\Rapid-I\RapidMiner5\scripts\..\jre\bin\java.ex
    e...
    Starting RapidMiner from 'C:\Program Files\Rapid-I\RapidMiner5\scripts\..' using
    classes from 'C:\Program Files\Rapid-I\RapidMiner5\scripts\..\lib\rapidminer.ja
    r'...
    7 dÚc. 2011 03:55:03 com.rapid_i.Launcher ensureRapidMinerHomeSet
    INFO: rapidminer.home is 'C:\Program Files\Rapid-I\RapidMiner5\scripts\..'.
    7 dÚc. 2011 03:55:03 com.rapid_i.Launcher main
    INFO: Launching RapidMiner, platform WIN64
    7 dÚc. 2011 03:55:05 com.rapid_i.Launcher ensureRapidMinerHomeSet
    INFO: rapidminer.home is 'C:\Program Files\Rapid-I\RapidMiner5\scripts\..'.
    7 dÚc. 2011 03:55:05 com.rapidminer.tools.ParameterService init
    INFO: Reading configuration resource com/rapidminer/resources/rapidminerrc.
    7 dÚc. 2011 03:55:05 com.rapidminer.PluginInitR initPlugin
    INFO: Trying to load R Library...
    7 dÚc. 2011 03:55:05 org.rosuda.JRI.Rengine <clinit>
    INFO: Creating Connection to R...
    7 dÚc. 2011 03:55:05 org.rosuda.JRI.Rengine loadLibrary
    INFO: Trying to loaded R library from C:\Users\Nathalie\Documents\R\win-library\
    2.14\rJava\jri\x64\jri.dll
    7 dÚc. 2011 03:55:05 org.rosuda.JRI.Rengine loadLibrary
    INFO: Engine ID: class org.rosuda.JRI.Rengine ClassLoader:PluginClassLoader ([fi
    le:/C:/Users/Nathalie/.RapidMiner5/managed/rmx_r-5.1.4.jar])
    7 dÚc. 2011 03:55:05 com.rapidminer.tools.I18N getMessage
    WARNING: Missing I18N key: r.could_not_load_native_lib
    7 dÚc. 2011 03:55:05 com.rapidminer.PluginInitR loadNativeLibrary
    SEVERE: r.could_not_load_native_lib
    java.lang.UnsatisfiedLinkError: C:\Users\Nathalie\Documents\R\win-library\2.14\r
    Java\jri\x64\jri.dll: Can't find dependent libraries
            at java.lang.ClassLoader$NativeLibrary.load(Native Method)
            at java.lang.ClassLoader.loadLibrary0(Unknown Source)
            at java.lang.ClassLoader.loadLibrary(Unknown Source)
            at java.lang.Runtime.load0(Unknown Source)
            at java.lang.System.load(Unknown Source)
            at org.rosuda.JRI.Rengine.loadLibrary(Rengine.java:109)
            at org.rosuda.JRI.Rengine.loadLibrary(Rengine.java:122)
            at com.rapidminer.PluginInitR.loadNativeLibrary(PluginInitR.java:163)
            at com.rapidminer.PluginInitR.initPlugin(PluginInitR.java:88)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
            at java.lang.reflect.Method.invoke(Unknown Source)
            at com.rapidminer.tools.plugin.Plugin.callInitMethod(Plugin.java:798)
            at com.rapidminer.tools.plugin.Plugin.callPluginInitMethods(Plugin.java:
    776)
            at com.rapidminer.tools.plugin.Plugin.initPlugins(Plugin.java:762)
            at com.rapidminer.tools.plugin.Plugin.initAll(Plugin.java:877)
            at com.rapidminer.RapidMiner.init(RapidMiner.java:456)
            at com.rapidminer.gui.RapidMinerGUI.run(RapidMinerGUI.java:221)
            at com.rapidminer.gui.RapidMinerGUI.launch(RapidMinerGUI.java:505)
            at com.rapidminer.gui.RapidMinerGUI.main(RapidMinerGUI.java:488)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
            at java.lang.reflect.Method.invoke(Unknown Source)
            at com.rapid_i.Launcher.main(Launcher.java:334)
    7 dÚc. 2011 03:55:05 org.rosuda.JRI.Rengine isJriLoaded
    WARNING: Access on Rengine but initialization failed! ID:1884473012
    7 dÚc. 2011 03:55:05 org.rosuda.JRI.Rengine isJriLoaded
    WARNING: Loading library on the fly...
    7 dÚc. 2011 03:55:05 org.rosuda.JRI.Rengine loadLibrary
    INFO: Trying to loaded R library from C:\Users\Nathalie\Documents\R\win-library\
    2.14\rJava\jri\x64\jri.dll
    7 dÚc. 2011 03:55:05 org.rosuda.JRI.Rengine loadLibrary
    INFO: Engine ID: class org.rosuda.JRI.Rengine ClassLoader:PluginClassLoader ([fi
    le:/C:/Users/Nathalie/.RapidMiner5/managed/rmx_r-5.1.4.jar])
    7 dÚc. 2011 03:55:05 org.rosuda.JRI.Rengine isJriLoaded
    WARNING: Error during loading library on the fly!
    java.lang.UnsatisfiedLinkError: C:\Users\Nathalie\Documents\R\win-library\2.14\r
    Java\jri\x64\jri.dll: Can't find dependent libraries
            at java.lang.ClassLoader$NativeLibrary.load(Native Method)
            at java.lang.ClassLoader.loadLibrary0(Unknown Source)
            at java.lang.ClassLoader.loadLibrary(Unknown Source)
            at java.lang.Runtime.load0(Unknown Source)
            at java.lang.System.load(Unknown Source)
            at org.rosuda.JRI.Rengine.loadLibrary(Rengine.java:109)
            at org.rosuda.JRI.Rengine.isJriLoaded(Rengine.java:134)
            at com.rapidminer.PluginInitR.initPlugin(PluginInitR.java:89)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
            at java.lang.reflect.Method.invoke(Unknown Source)
            at com.rapidminer.tools.plugin.Plugin.callInitMethod(Plugin.java:798)
            at com.rapidminer.tools.plugin.Plugin.callPluginInitMethods(Plugin.java:
    776)
            at com.rapidminer.tools.plugin.Plugin.initPlugins(Plugin.java:762)
            at com.rapidminer.tools.plugin.Plugin.initAll(Plugin.java:877)
            at com.rapidminer.RapidMiner.init(RapidMiner.java:456)
            at com.rapidminer.gui.RapidMinerGUI.run(RapidMinerGUI.java:221)
            at com.rapidminer.gui.RapidMinerGUI.launch(RapidMinerGUI.java:505)
            at com.rapidminer.gui.RapidMinerGUI.main(RapidMinerGUI.java:488)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
            at java.lang.reflect.Method.invoke(Unknown Source)
            at com.rapid_i.Launcher.main(Launcher.java:334)
    7 dÚc. 2011 03:55:05 com.rapidminer.PluginInitR initPlugin
    SEVERE: Failed to load R library!
    7 dÚc. 2011 03:55:09 com.rapidminer.parameter.ParameterTypePassword decryptPassw
    ord
    WARNING: Password in XML file looks like unencrypted plain text.
    [Fatal Error] :1:1: Content is not allowed in prolog.
    7 dÚc. 2011 03:55:18 com.rapidminer.operator.r.ROperatorFactory readROperatorFra
    gments
    WARNING: Could not read R fragments from 'file:/C:/Program%20Files/Rapid-I/Rapid
    Miner5/', error: Content is not allowed in prolog.
    org.xml.sax.SAXParseException: Content is not allowed in prolog.
            at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown So
    urce)
            at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unk
    nown Source)
            at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
            at com.rapidminer.io.process.XMLTools.parse(XMLTools.java:175)
            at com.rapidminer.operator.r.ROperatorFactory.readROperatorFragments(ROp
    eratorFactory.java:166)
            at com.rapidminer.operator.r.ROperatorFactory.<init>(ROperatorFactory.ja
    va:129)
            at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

            at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)

            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Sou
    rce)
            at java.lang.reflect.Constructor.newInstance(Unknown Source)
            at java.lang.Class.newInstance0(Unknown Source)
            at java.lang.Class.newInstance(Unknown Source)
            at com.rapidminer.tools.OperatorService.parseOperators(OperatorService.j
    ava:294)
            at com.rapidminer.tools.OperatorService.parseOperators(OperatorService.j
    ava:232)
            at com.rapidminer.tools.OperatorService.registerOperators(OperatorServic
    e.java:206)
            at com.rapidminer.tools.plugin.Plugin.registerOperators(Plugin.java:471)

            at com.rapidminer.tools.plugin.Plugin.registerAllPluginOperators(Plugin.
    java:725)
            at com.rapidminer.tools.OperatorService.init(OperatorService.java:167)
            at com.rapidminer.RapidMiner.init(RapidMiner.java:465)
            at com.rapidminer.gui.RapidMinerGUI.run(RapidMinerGUI.java:221)
            at com.rapidminer.gui.RapidMinerGUI.launch(RapidMinerGUI.java:505)
            at com.rapidminer.gui.RapidMinerGUI.main(RapidMinerGUI.java:488)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
            at java.lang.reflect.Method.invoke(Unknown Source)
            at com.rapid_i.Launcher.main(Launcher.java:334)
    [Fatal Error] :1:1: Content is not allowed in prolog.
    7 dÚc. 2011 03:55:18 com.rapidminer.operator.r.ROperatorFactory <init>
    WARNING: Could not read documentation of user defined R operators from .
    java.io.IOException: Malformed XML operator help bundle: org.xml.sax.SAXParseExc
    eption: Content is not allowed in prolog.
            at com.rapidminer.tools.documentation.XMLOperatorDocBundle.<init>(XMLOpe
    ratorDocBundle.java:119)
            at com.rapidminer.operator.r.ROperatorFactory.<init>(ROperatorFactory.ja
    va:150)
            at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

            at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)

            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Sou
    rce)
            at java.lang.reflect.Constructor.newInstance(Unknown Source)
            at java.lang.Class.newInstance0(Unknown Source)
            at java.lang.Class.newInstance(Unknown Source)
            at com.rapidminer.tools.OperatorService.parseOperators(OperatorService.j
    ava:294)
            at com.rapidminer.tools.OperatorService.parseOperators(OperatorService.j
    ava:232)
            at com.rapidminer.tools.OperatorService.registerOperators(OperatorServic
    e.java:206)
            at com.rapidminer.tools.plugin.Plugin.registerOperators(Plugin.java:471)

            at com.rapidminer.tools.plugin.Plugin.registerAllPluginOperators(Plugin.
    java:725)
            at com.rapidminer.tools.OperatorService.init(OperatorService.java:167)
            at com.rapidminer.RapidMiner.init(RapidMiner.java:465)
            at com.rapidminer.gui.RapidMinerGUI.run(RapidMinerGUI.java:221)
            at com.rapidminer.gui.RapidMinerGUI.launch(RapidMinerGUI.java:505)
            at com.rapidminer.gui.RapidMinerGUI.main(RapidMinerGUI.java:488)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
            at java.lang.reflect.Method.invoke(Unknown Source)
            at com.rapid_i.Launcher.main(Launcher.java:334)
    Caused by: org.xml.sax.SAXParseException: Content is not allowed in prolog.
            at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown So
    urce)
            at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unk
    nown Source)
            at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
            at com.rapidminer.tools.documentation.XMLOperatorDocBundle.<init>(XMLOpe
    ratorDocBundle.java:117)
            ... 22 more
    7 dÚc. 2011 03:55:18 com.rapidminer.tools.jdbc.JDBCProperties <init>
    WARNING: Missing database driver class name for 'ODBC Bridge (e.g. Access)'
    7 dÚc. 2011 03:55:18 com.rapidminer.tools.jdbc.JDBCProperties registerDrivers
    INFO: JDBC driver ca.ingres.jdbc.IngresDriver not found. Probably the driver is
    not installed.
    7 dÚc. 2011 03:55:18 com.rapidminer.tools.jdbc.JDBCProperties registerDrivers
    INFO: JDBC driver oracle.jdbc.driver.OracleDriver not found. Probably the driver
    is not installed.
    7 dÚc. 2011 03:55:24 com.rapidminer.tools.I18N getMessage
    WARNING: Missing I18N key: gui.action.workspace_Nath.label
    7 dÚc. 2011 03:55:24 org.rosuda.JRI.Rengine isJriLoaded
    WARNING: Access on Rengine but initialization failed! ID:1884473012
    7 dÚc. 2011 03:55:24 org.rosuda.JRI.Rengine isJriLoaded
    WARNING: Loading library on the fly...
    7 dÚc. 2011 03:55:24 org.rosuda.JRI.Rengine loadLibrary
    INFO: Trying to loaded R library from C:\Users\Nathalie\Documents\R\win-library\
    2.14\rJava\jri\x64\jri.dll
    7 dÚc. 2011 03:55:24 org.rosuda.JRI.Rengine loadLibrary
    INFO: Engine ID: class org.rosuda.JRI.Rengine ClassLoader:PluginClassLoader ([fi
    le:/C:/Users/Nathalie/.RapidMiner5/managed/rmx_r-5.1.4.jar])
    7 dÚc. 2011 03:55:24 org.rosuda.JRI.Rengine isJriLoaded
    WARNING: Error during loading library on the fly!
    java.lang.UnsatisfiedLinkError: C:\Users\Nathalie\Documents\R\win-library\2.14\r
    Java\jri\x64\jri.dll: Can't find dependent libraries
            at java.lang.ClassLoader$NativeLibrary.load(Native Method)
            at java.lang.ClassLoader.loadLibrary0(Unknown Source)
            at java.lang.ClassLoader.loadLibrary(Unknown Source)
            at java.lang.Runtime.load0(Unknown Source)
            at java.lang.System.load(Unknown Source)
            at org.rosuda.JRI.Rengine.loadLibrary(Rengine.java:109)
            at org.rosuda.JRI.Rengine.isJriLoaded(Rengine.java:134)
            at com.rapidminer.PluginInitR.initGui(PluginInitR.java:100)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
            at java.lang.reflect.Method.invoke(Unknown Source)
            at com.rapidminer.tools.plugin.Plugin.callInitMethod(Plugin.java:798)
            at com.rapidminer.tools.plugin.Plugin.callPluginInitMethods(Plugin.java:
    776)
            at com.rapidminer.tools.plugin.Plugin.initPluginGuis(Plugin.java:754)
            at com.rapidminer.gui.RapidMinerGUI.run(RapidMinerGUI.java:248)
            at com.rapidminer.gui.RapidMinerGUI.launch(RapidMinerGUI.java:505)
            at com.rapidminer.gui.RapidMinerGUI.main(RapidMinerGUI.java:488)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
            at java.lang.reflect.Method.invoke(Unknown Source)
            at com.rapid_i.Launcher.main(Launcher.java:334)

  • haddock
    haddock New Altair Community Member
    Hi there,

    Looking at the error message, it looks like a path problem. Have you checked this out?

    http://rapid-i.com/rapidforum/index.php/topic,2612.msg10451.html#msg10451