How to build Dockerfile with R & Java
问题 I'm trying to build a Docker container that runs R with the package RJava. I have tried the following code: # Install R version 3.6.3 FROM rocker/tidyverse:3.6.3 # Make ~/.R RUN mkdir -p $HOME/.R # Install Ubuntu packages && then R packages RUN install2.r --error \ lubridate magrittr RPostgres DBI broom rlang rJava However I get the following: installation of package ‘rJava’ had non-zero exit status. Can anyone help me with this. I'm thinking that maybe it is because Java is not installed.