-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
accommodate renv projects with reprex? #284
Comments
Jotting down ideas for what
|
I'm going to look at this soon @kevinushey. Will you read it over again and update if renv or your thinking has evolved? |
Thanks! I think there are two possible approaches here:
|
I didn't end up doing anything specific to renv here. I just rationalized reprex's behaviour in light of |
From rstudio/renv#208.
Projects using
renv
typically require some extra gymnastics, which are performed (normally) through the use of a project.Rprofile
. However,reprex()
does not read that.Rprofile
by default, leading to some subtle differences in howreprex()
runs code versus howrenv
might run that same code.It could be worth considering whether
reprex()
could support this by default; e.g. by allowing the project.Rprofile
to be loaded -- either by default, or when it detects or knowsrenv
is active.The text was updated successfully, but these errors were encountered: