I am getting started with collaborating with team members on R projects using renv
. While I can (mostly) get it to work, I am a bit confused about whether and where to install renv
itself. According to the documented workflow I basically need renv installed before I start a new project with renv
.
However, when I do not have renv
installed, and clone a repo that uses renv
, it seems to install (bootstrap?) itself. But it does this within the local renv
environment.
I have a couple of questions regarding this:
- Do you recommend to have
renv
installed "outside" therenv
virtual environment? - How do you deal with differences in versions of
renv
itself between what is e.g. installed on my machine and present in a repo that I clone, and whichrenv
I would like to replicate? I ran into problems with this one, could not replicate arenv
from a cloned repo with a differentrenv
version. - On a more conceptual level: why is
renv
itself part of the virtual environment it creates? That's not the case for the python virtual environment managers I know.