A base image is rocker/tidyverse which includes R, tidyverse, and Rstudio server.
This images adds R packages below.
- rJava
- tabulizer
- log4r
- modules
- pointblank
- styler
Tags indicates R version.
For example, ghcr.io/kj-9/r-java:4.0.3
has R version 4.0.3
.
Currently, only some R versions are available. See here to check out available tags(R versions).
docker run \
--rm \
--workdir /home/rstudio \
-v $(pwd):/home/rstudio \
-e PASSWORD=YOURPASSWORD \
-p 8787:8787 \
ghcr.io/kj-9/r-java:latest
then access localhost:8787
with your browser.
*default user name is rstudio
.
docker run \
-it \
--rm \
--entrypoint 'Rscript' \
--workdir /home/rstudio \
-v $(pwd):/home/rstudio \
ghcr.io/kj-9/r-java:latest YOURSCRIPT.R