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.<init>(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..~~]]:><function>]. >>
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..~~]]:><function>] >>
$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.
RLink`Developer`getLog[]
right afterInstallR[]
fails, and send the output to me ([email protected]). $\endgroup$"RHomeLocation"
option, per @b.gatessucks answer. This may work. If you do try it, please share your results with us. Thanks. $\endgroup$