Setting up a transparent reproducible R environment with Docker + renv | R-bloggers
For my PhD I’m currently writing a paper using rmarkdown. Since I care about reproducibility, I’m using renv to register the versions of the R packages I use and to manage a local library that doesn’t affect the rest of my system. With that, anyone who wants to reproduce my work could download all the code, run renv::restore() and have an R environment very similar to the one I use. But while renv is nice, it doesn’t solve the whole problem, because system dependencies and even the R version itself can change. Another issue is that downloading and installing all the R packages can take a while. Like an hour or more. This is not a deal-breaker, but I’d like to do better. People trying to reproduce work are few and far between, so it’s important to make their lives as easy as possible. Thanks to a recent episode of the R Weekly Highlights podcast, which pointed me to this post by Rahul Sangole on how to set up a reproducible environment with Docker, I have now a better alternative that n
[social4i size="small" align="align-left"] --> [This article was first published on Code R , and kindly contributed to R-bloggers ]. (You can report issue about the content on this page here ) Want to share your content on R-bloggers? click here if you have a blog, or here if you don't. Share Tweet For my PhD I’m currently writing a paper using rmarkdown . Since I care about reproducibility, I’m using renv to register the versions of the R packages I use and to manage a local library that doesn’t affect the rest of my system. With that, anyone who wants to reproduce my work could download all
related reading
- GitHub - jackyzha0/docker-explained: 🐋 wtf is docker and why is everyone talking about itgithub.com
- Training Materialscontainer.training
- CodaLab Worksheetsworksheets.codalab.org
- The R Project for Statistical Computingr-project.org
- Find R package dependencies in a project — dependencies • renvrstudio.github.io
- Docker: Accelerated Container Application Developmentdocker.com
- Using Nix with Dockerfilesmitchellh.com
- Deploying R with kubernetes – Notes from a data witchblog.djnavarro.net
- GitHub · Change is constant. GitHub keeps you ahead.github.com
- Machine learning needs better tools – Replicate blogreplicate.com
- How does Docker work? A Technical Deep Diving | Mediummedium.com
- uvdocs.astral.sh