I'm trying to install RLink here.
Needs["RLink`"]
InstallR[]
After downloading it throws an error:
InstallR::fail: Failed to install R. The following error was
encountered: Unable to load dynamic libraries >>
And then:
RSet["myVar",10]
JLink`Java::excptn: A Java exception occurred: com.wolfram.links.rlink.exceptions.RLinkException: Unable to load dynamic libraries
at com.wolfram.links.rlink.RLinkInit.(Unknown Source)
at com.wolfram.links.rlink.RLinkInit.getInstance(Unknown Source)
at com.wolfram.links.rlink.RLinkInit.getRExecutor(Unknown Source).
JLink`Java::argx: Method named rPut defined in class com.wolfram.links.rlink.dataTypes.inTypes.RIntegerVectorInType was called with an incorrect number or type of arguments. The arguments, shown here in a list, were {myVar,$Failed}. >>
REvaluate::err: General error in function RLink`Private`withRTemporaryVariables >>
First::normal: Nonatomic expression expected at position 1 in First[$Failed]. >>
StringReplace::strse: String or list of strings expected at position 1 in StringReplace[StringTrim[First[$Failed]],RLinkFunctionHash12345[[~~DigitCharacter..~~]]:>]. >>
RSet::puterr: Error putting the expression 10 into a variable myVar in R. The last error message issued by R was StringReplace[StringTrim[First[$Failed]],RLinkFunctionHash12345[[~~DigitCharacter..~~]]:>] >>
$Failed
It isn't java's fault. I've tried pointing JRELocation option of InstallR to different JREs, error stays the same.
I'm on Ubuntu 12.04 64 bit.
Answer
I have R installed separately and can do :
InstallR["RHomeLocation" -> "/usr/lib64/R"]
I am able to run the examples provided in the documentation. I use Fedora 17 64 bit.
Comments
Post a Comment