Can't install rJava on ubuntu system Can't install rJava on ubuntu system r r

Can't install rJava on ubuntu system


The easiest way to get rJava on Ubuntu is to install it from the repositories instead of trying to install it directly from CRAN. From the command line this should do the trick

sudo apt-get install r-cran-rjava


I'm facing the same problem at the moment but the solution doesn't seem to work anymore. Running

sudo apt-get install r-cran-rjava

gives me

The following packages have unmet dependencies: r-cran-rjava : Depends: r-api-3.4

I'm on Linux Mint Tessa 19.1 und I'm using R version 3.6.1 (2019-07-05)


I had

The following packages have unmet dependencies: r-cran-rjava : Depends: r-api-3.4

I solved with

sudo apt-get updatesudo apt-get install default-jresudo apt-get install default-jdk

and

sudo apt-get install r-cran-rjava