Scaffolds a Docker
environment for RStudio Development
It is assumed that you have the following software(s) installed and availible:
- Use npm to install
yo
npm install -g yo
- Install
generator-rstudio-server
from sourcenpm install -g https://github.com/bcbeidel/generator-rstudio-server
- Then within your project folder, generate your new project:
yo rstudio-server
- Answer the generators quesions in the command line
- Modify the
Dockerfile
ordocker-compose.yml
to meet your needs - Build your
Docker
container, and start yourDocker
environmentdocker-compose up --build
- Navigate to
http://localhost:8787/
in a browser window and log in with the following credentials- user: rstudio
- pass: rstudio
- Develop your R code
- Stop your development environment with
Ctrl + c
- yeoman | Application Scaffodling Tool
- yo | CLI Tool for running yeoman generators
- node.js | Asynchronous event-driven JavaScript runtime
- npm | Node Package Manger
- docker | https://docs.docker.com/
- docker-compose | A tool for defining and running multi-container Docker applications
- The Rocker Project | Docker Containers for the R Environment
- renv | The renv package helps you create reproducible environments for your R projects