Skip to content

Latest commit

 

History

History
48 lines (36 loc) · 1.01 KB

README.md

File metadata and controls

48 lines (36 loc) · 1.01 KB

Docker image of R with Java

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

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).

Usage

Example of running Rstudio server

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.

Example of running R script

docker run \
    -it \
    --rm \
    --entrypoint 'Rscript' \
    --workdir /home/rstudio \
    -v $(pwd):/home/rstudio \
    ghcr.io/kj-9/r-java:latest YOURSCRIPT.R