Posting your R code is good. But posting your code with instructions for what R version of your packages need to be installed with renv will take your reproducibility to another level. In this episode, Pat uses the renv R package to show you how to set up a project and keep track of the packages and versions that you are using. Then he shows how anyone can grab a copy of your project from GitHub and recreate your package environment
You can find my blog post for this episode at www.riffomonas.org/code_club/....
#renv #Rstudio #reproducibility #R #Rstats
Want more practice on the concepts covered in Code Club? You can sign up for my weekly newsletter at shop.riffomonas.org/youtube to get practice problems, tips, and insights.
If you're interested in taking an upcoming 3 day R workshop be sure to check out our schedule at riffomonas.org/workshops/
You can also find complete tutorials for learning R with the tidyverse using...
Microbial ecology data: www.riffomonas.org/minimalR/
General data: www.riffomonas.org/generalR/
0:00 Introduction
2:44 Setting up renv on an existing project
9:42 Exploring the impact of renv on our paths
12:55 Installing packages and taking snapshots
15:30 How someone else benefits from your use of renv
19:03 Limitations of renv
Негізгі бет Ғылым және технология Using renv to track the version of your packages in R (CC229)
Пікірлер: 21