-
Notifications
You must be signed in to change notification settings - Fork 91
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
packrat (renv) dependency lookup inadvertently ignores projects in directories prefixed with /data/
.
#684
Comments
Thanks for filing this. Our intent is to do as you describe - ignore |
Part of the reason is probably the Line 145 in 28e4a1e
Compare e.g.
I think we had some motivation to use |
Capturing more history: The "asis" support was added to
The intent was to rewrite the Packrat set of ignored directories into renv-equivalents so they would apply only at the project root. The "asis" attribute was meant to avoid any parsing of the rule by The filtering in Packrat (given a recursive Lines 203 to 223 in 28e4a1e
|
We have a situation where our system temp directory is actually a symlink to
/data/tmp
, and the renv default exclusion rules cause all inferred packages to be ignored when trying to deploy content to RStudio Connect.While in our case
/data
is the first directory after the root, it seems this will happen if a directory is calleddata
anywhere in the tree. I think ideally these exclusions would match only child directories of the project root. This should be a relatively minimal example.Created on 2022-08-11 by the reprex package (v2.0.1)
cc @aronatkins, who I believe added this code in #647
A workaround for us is to set
options(packrat.dependency.discovery.renv = FALSE)
, but ideally users wouldn't need to resort to this :)The text was updated successfully, but these errors were encountered: