A scratchpad for R
I really don't want to install RStudio.
This will build a super large container that can execute R scripts.
- Docker CE 19.03.0-beta3
Add packages to requirements.r
and execute ./build.sh <tag>
to create a docker image with the name r-play:<tag>
docker run --rm -v $PWD/<sub_dir>:/app r-play:<tag> bash -c "Rscript /app/hello.r"
./build.sh local
docker run --rm -v $PWD/hello_world:/app r-play:local bash -c "Rscript /app/hello.r"
[1] "Hello World"