I'm trying to install RLink here.

Needs["RLink"]
InstallR[]


InstallR::fail: Failed to install R. The following error was
encountered: Unable to load dynamic libraries >>


And then:

RSet["myVar",10]
JLinkJava::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 RLinkPrivatewithRTemporaryVariables >> 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.

-
What platform are you on, precisely (Ubuntu - which version? 64 bit). I will file a bug for this and will deal with this issue as soon as possible. One useful thing you can do to help us is to execute RLinkDevelopergetLog[] right after InstallR[] fails, and send the output to me (leonids@wolfram.com). – Leonid Shifrin Nov 29 '12 at 15:27
@LeonidShifrin Done. – swish Nov 29 '12 at 15:41
In the meantime, consider also installing the external R distribution and then try the "RHomeLocation" option, per @b.gatessucks answer. This may work. If you do try it, please share your results with us. Thanks. – Leonid Shifrin Nov 29 '12 at 16:00

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.

-
That's good news, man! So, for at least some Linux flavors, RLink does work with an external R distribution. Thanks for sharing this. – Leonid Shifrin Nov 29 '12 at 15:56
@Leonid My pleasure. It would be even better if I knew R. – b.gatessucks Nov 29 '12 at 16:05
Do you need R for anything, at least potentially? – Leonid Shifrin Nov 29 '12 at 16:14
@LeonidShifrin I might have to pick at least one between R and Python soon (for work). – b.gatessucks Nov 29 '12 at 16:15
Actually it works, I'm sure I've tried it before but now it works somehow :). The only difference is that R is inside "/usr/lib/R". Some typo maybe... – swish Nov 29 '12 at 16:56