Skip to content

riccardoforzan/devcontainer-r

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

devcontainer-r

Setup a reproducible environment for R development and a way to distribute R applications using Docker

Dev setup (using VSCode)

  1. Start a new terminal inside the devcontainer and run R

  2. If you clone a project that already has renv.lock as a file, you only need to run renv::restore()

  3. If your project does not have a renv.lock, you should initialize the project using Renv:

    install.packages("renv")
    renv::init()
  4. Install required libraries (e.g., glue):

    install.packages("glue")
    renv::snapshot()  

Distribution Setup

  1. Create an image: docker build -t myapplication:0.0.1 .
  2. Run the application: docker run myapplication:0.0.1

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks