-
Notifications
You must be signed in to change notification settings - Fork 7
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
Rethink how we manage the dependency with r2dii.match #351
Comments
Hey @maurolepore long time no talk! Doing a bit of spring cleaning on these packages, and I attempted to move the In your experience, what would be a good way to proceed here? I tend to agree that it shouldn't be a hard dependency since we aren't actually using any functions in any of the source code (e.g. I think Relates to #461 |
Yeah, sounds like a good case to list it under Suggests and use it conditionally -- maybe with I see a mention to And here are some examples in the wild https://github.com/search?q=org%3Atidyverse+%22%40examplesIf%22&type=code #' @examplesIf rlang::is_installed("tidyr", version = "1.0.0")
#' ... |
Thanks @maurolepore :-) |
Relates to #352
As of 2021-07-30 I see an error with debian-clang-devel at
https://cran.r-project.org/web/checks/check_results_r2dii.analysis.html
This particular error ultimately comes from an issue in stringdist, and the
maintainer seems to be working on it. However, this also makes me think
we are handling the dependency with r2dii.match in an odd way.
We new only suggest r2dii.match but we enforce it in examples. This is
contradictory. If we want to enforce r2dii.match then we should likley
add it to Imports -- not Suggests. Or if we want users to opt out of
installing r2dii.match, then we should not throw an error if it's not
installed.
Given we expect users of r2dii.analysis to indeed use r2dii.match, I think
the simplest more reasanable soluiton is to add r2dii.match to Imports.
Alternatively we could keep r2dii.match in Suggests and either a) not
run the example where it's needed, or b) export a dataset from r2dii.analysis
that bypasses the need for r2dii.match.
The text was updated successfully, but these errors were encountered: