Skip to content

Docker and docker-compose.yml template for a new R/RStudio project

Notifications You must be signed in to change notification settings

yuheitomi/rproject-docker-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to set up

Before building and launching the container based on this template, create cache directories for renv and pak, as well as RStudio config directory.

$ mkdir ~/.cache/R/renv # renv
$ mkdir ~/.cache/R/pkgcache # pak
$ mkdir ~/.config/rstudio-server # rstudio configs

In the Dockerfile, several cache and configuration directories are created under /home/rstudio/ with user's priviledge.

Environmental variables

  • ROOT is true to enable sudo command in RStudio terminal. Password is password.
  • No authentication is required to log in to RStudio Server.
  • RENV_CONFIG_PAK_ENABLED is set true to enable pak by default for renv.

About

Docker and docker-compose.yml template for a new R/RStudio project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published