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
Explore this link on the map →related reading
- Training Materialscontainer.training
- Machine learning needs better tools – Replicate blogreplicate.com
- Deploying R with kubernetes – Notes from a data witchblog.djnavarro.net
- Find R package dependencies in a project — dependencies • renvrstudio.github.io
- How does Docker work? A Technical Deep Diving | Mediummedium.com
- A Complete Guide for Deploying ML Models in Docker - Analytics Vidhyaanalyticsvidhya.com
- Render · The Easiest Cloud For All Your Appsdashboard.render.com
- Top 22 Docker Security Best Practices: Ultimate Guideaquasec.com
- Repl.it Case Study | Google Cloudcloud.google.com
- R pre-sessionalandrewmoles2.github.io
- A Practical Guide for Improving Transparency and Reproducibility in Neuroimaging Research | PLOS Biologyjournals.plos.org
- repomirror/repomirror.md at main · repomirrorhq/repomirror · GitHubgithub.com