-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
[Discussion/Question]: How to deal with indirect dependencies that are not on CRAN #38
Comments
(moving discussion from chat to issue @pawelru) I've already tested a solution of However, there's a positive side-effect as it would make the |
I personally leaning towards 2. This would be a clean solution because something wrong is with I have some bad feeling about 1 as this would break encapsulation. I don't want people to specify all indirect deps there. On the other hand, we can change the behaviour in a way that the entry will be used on a match with any (!) of all (!) dependencies (currently it is used on a match with direct dependencies only). I see the value (not to mention max strategy as you pointed out) but this is quite a messy logic to be honest. If done, this needs to be very well documented. |
I think there's a third option that was right in front of us, which is to manipulate the See insightsengineering/r-verdepcheck-action#22 We can do the same as that PR when using |
Related to insightsengineering/verdepcheck#38 In scenarios where the `DESCRIPTION` file has top-level dependencies (`Depends`, `Imports`, `Suggests`, `Extends`) that depend on packages not yet released on CRAN, this new option allows to define repositories that may fill the gap. In particular, this is important on `max` strategy, as they might depend on secondary packages that have changes that only exist on the repository. ### Changes description - Adds new option to add extra repositories - If user wants to fully override default repository, they can replace environmental variables - Adds styling to first (manual) header - Better organizes readme ### TODO: - [ ] Understand how to use this new option in github action `matrix` ### Use case examples This will be especially helpful with `max` strategy to allow more packages to be compiled with latest development versions - `insightsengineering` packages can use `r-universe.dev` to pull secondary dependencies such as `formatters` - Pull all latest development from tidyverse packages by using https://tidyverse.r-universe.dev/builds `release` strategy can also use this if downstream packages are not being release on CRAN `min_***` strategy shouldn't use this option
What is your question?
Example
Context:
pkg.a
depends onpkg.b
but not onpkg.c
.pkg.c
is not defined on DESCRIPTION file ofpkg.a
pkg.c
is only released on GitHub / R-UniverseFor an actual case,
pkg.a is teal.modules.clinical
,pkg.b is teal.slice
andpkg.c is teal.data
Outcome
pkg.c
Solutions
Config/Needs/verdepcheck
ofpkg.a
to serve as hint on where to findpkg.c
Depends/Imports/Suggests
Remotes
section to insightsengineering packagespkg.c
is released on CRANteal.data
should be released in next few monthsCode of Conduct
Contribution Guidelines
The text was updated successfully, but these errors were encountered: