-
-
Notifications
You must be signed in to change notification settings - Fork 78
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
Simplify conditional expressions involved in vignette evaluation #341
Comments
For a reference, see my PR in |
* Simplify conditional expressions involved in vignette evaluation easystats/easystats#341 * Apply automatic changes * fix docs * fix lints * simplify conditionals * Update scale_color_okabeito.Rd Co-authored-by: IndrajeetPatil <IndrajeetPatil@users.noreply.github.com>
In |
@mattansb Sounds good to me! Yes, this is relevant for the repo you are maintaining only if you are using the outlined pattern. |
For a given vignette, for how many external packages is it worth changing? E.g., for a single package? Two packages? (seems a bit overkill for a single package, going from 3 lines to 9 lines, so I haven't changed those yet) |
I think, for vignettes using more than one package, this makes sense. |
bump |
Preamble
To pass the "noSuggests" check, we use the recommended approach of evaluating vignettes conditional on availability of all soft/weak dependencies. But, currently, the way we do it is quite complex and difficult to discern and extend. We can simplify this significantly, as shown below.
Before
After
Note that adding or removing any of the needed deps is as simple as modifying the character vector of package names.
Progress tracker:
The text was updated successfully, but these errors were encountered: