Replies: 3 comments 6 replies
-
I really like renv. It can be fiddly, but it is better than anything else I've tried to ensure that (1) all collaborators are using the same packages and (2) the same versions. I would advocate that we use it. renv and here are two super pieces of workflow. The last piece is a Makefile, I'm intrigued by snakemake https://lachlandeer.github.io/snakemake-econ-r-tutorial/ but haven't tried it out yet. |
Beta Was this translation helpful? Give feedback.
-
The targets package looks cool. Eager to try it. renv doesn't really require files. After installing the library renv, It just requires you to do: (1) |
Beta Was this translation helpful? Give feedback.
-
You can see a repo using renv here: <https://github.com/GSA/oes-msg-voting_description>
Once you have some code (like, say, `Scripts/Analysis/data_cleaning.R`,
that has lines like
```r
library(tidyverse)
library(estimatr)
```
Then if you start R in the root directory and renv is not yet installed and
active, you need type `renv::init()` and renv will search through the files
for `library(...` commands and record those packages.
You can see more here: https://rstudio.github.io/renv/articles/renv.html
Jake Bowers
http://jakebowers.org
…On Tue, May 30, 2023 at 10:23 AM Ben Jaques-Lelsie ***@***.***> wrote:
When do you run renv::init()? When first setting up a project? Do you run
it again if you need a new package?
—
Reply to this email directly, view it on GitHub
<#1 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAELETCGBZEBKRS3DUPRCWDXIYGGTANCNFSM6AAAAAAYPBNII4>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I was think about virtual environments and stumbled across renv. I've never used it independently, but @jwbowers executed a script on the power analysis that we were working on together. What do you (@saraguenther and @jwbowers) think?
Beta Was this translation helpful? Give feedback.
All reactions