Skip to content

Commit

Permalink
Packrat -> renv
Browse files Browse the repository at this point in the history
  • Loading branch information
hadley committed Aug 9, 2022
1 parent d7b9942 commit 2b04c35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rmarkdown-workflow.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ I've drawn on my own experiences and Colin Purrington's advice on lab notebooks
That will let you fix any problems while the code is still fresh in your mind.

- If you want your code to be reproducible in the long-run (i.e. so you can come back to run it next month or next year), you'll need to track the versions of the packages that your code uses.
A rigorous approach is to use **packrat**, <http://rstudio.github.io/packrat/>, which stores packages in your project directory, or **checkpoint**, <https://github.com/RevolutionAnalytics/checkpoint>, which will reinstall packages available on a specified date.
A rigorous approach is to use **renv**, <https://rstudio.github.io/renv/index.html>, which stores packages in your project directory.
A quick and dirty hack is to include a chunk that runs `sessionInfo()` --- that won't let you easily recreate your packages as they are today, but at least you'll know what they were.

- You are going to create many, many, many analysis notebooks over the course of your career.
Expand Down

0 comments on commit 2b04c35

Please sign in to comment.