eddelbuettel / r2u

CRAN as Ubuntu Binaries

Home Page:https://eddelbuettel.github.io/r2u

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can r2u handle rJava dependencies?

kendonB opened this issue · comments

I find I need to install the dependencies listed here to get rjava working.

https://www.r-bloggers.com/2018/02/installing-rjava-on-ubuntu/

Yes -- I also noticed the other day, cannot remember how as I don't use Java -- that the r-cran-rjava package appears to be borked.

I have not quite decided what to do. One easy fix may be to just force a rebuild or I could just blacklst it to depends on the distro package.

(Forgot those articles, by the way. Most of them are crap as are the StackOverflow questions. On Debian or Ubuntu, sudo apt install r-cran-rjava is generally what you want to get the package from the distro. Here the r2u package shadows it and is borken which is not good.)

Ok -- try now. Both focal and jammy have a .2 version of the r-cran-rjava .deb package which per an extra rule adds the required default-jre package. With library(rJava) works for me in a test container.

I am going to close this as the fix was committed in 2e88de0. In case this does not work for you please re-open with pertinent information to reproduce.