ignore packages when recursively enumerating dependencies#654
ignore packages when recursively enumerating dependencies#654aronatkins merged 2 commits intomasterfrom
Conversation
What I didI smoke tested this and #656 in a merged branch. I tested the changes by:
ResultsIn both cases, all expected packages were ignored. I didn't find any other issues using basic Packrat functions related to these changes. Running |
|
@toph-allen - I think you're right about the packrat dependency. The |
|
For Packrat's own tests, we use a dummy repository with a mock version of packrat available: Lines 43 to 48 in 25302c0 Could something similar be done for testing here? You could also try appending to the DESCRIPTION file of the external copy of packrat as well, to convince packrat that packrat is available on a CRAN-like repository. If not, it might suffice to just add some code to packrat to check whether tests are running, and allow for packrat to be missing while running tests. |
previously, we ignored only direct dependencies
eeebb26 to
29733b2
Compare
previously, we ignored only direct dependencies
Given a Shiny application having:
The default set of dependencies:
Prior to this change, with "emo" and "Rcpp" as ignores, only the top-level "emo" is ignored:
After this change, both "emo" and "Rcpp" are ignored:
If we were to choose a dependency with substantial dependencies, we'll see those dependencies disappear, as well; notice that "stringi" is not included as a result of ignoring "stringr"; neither of these are direct project dependencies: