0

I try Dirk Eddelbuettel's suggestion, viz. sudo apt-get install r-cran-rjava in the terminal. The instruction installs rJava 0.9-3-1, not the current version,rJava 0.9-6. Unhappily, my version of R (3.10, "sock it to me") does not allow the earlier version to run. Trying update.packages also fails, as does install.packages.

1 Answer 1

0

You can't have your cake and eat it: If you use Ubuntu 12.04, you are effectively saying that you value stability first, and so you are using a 2 1/2 year old distro. And you get the packages contained in that version.

Now, if you were to run Ubuntu 14.04, you would be getting 0.9-6. Just like that. And 14.04 is also an LTS release, so I'd upgrade.

Lastly, you have 3.1.0 (not 3.10 as wrote as the latter does not exist) so somehow you must have managed to figure out how to add other repos. So with that, maybe re-read the fine README by Michael at CRAN as I believe that one of his additional repos may well have a newer rJava backported to 12.04.

Ultimately the problem of trying to mix a newer R (which you installed) with an older distro release (which you still use) is of your making: the R in 12.04 will run with the rJava in 12.04.

So I would just upgrade. Lots of other software got better too.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.