Closed jmgirard closed 5 years ago
The minimum version of rlang is hard-wired inside use_tidy_eval()
:
use_dependency("rlang", "Imports", ">= 0.1.2")
I will defer to @lionel- whether that's a good plan going forward. use_tidy_versions()
, on the other hand, will use the currently installed version, which could be overly conservative. It will probably always be true that one needs to apply some judgement in these cases. I doubt we can ever get it perfectly right.
I just tried it and don't see any change re: roxygen2. Are you sure that didn't come from use_tidy_versions()
?
I can't reproduce what you're seeing with "Install and Restart". How does the help look at this point? What if you try to access the help on those functions through ?rlang::enquo
in the Console?
Thanks for the quick reply. Here is what is displayed in my console for (1) and (2).
Interestingly, ?rlang::enquo
correctly routes to the quotation help page.
Did you indeed run devtools::document()
?
Yes, I did. :)
On a related note, I'm wondering if utils-tidy-eval.R
should import :=
as well. It's not a huge deal to add this if needed, but it might make sense to include.
Would it make sense to always depend on latest rlang, to push things forward? For instance 0.3.0 has an important fix for .data[[
subsetting. In any case 0.1.2 is too old, it still has the old !!
precedence.
Using the latest version might obviate this, but in general it seems like a reasonable approach might be to compare the version that usethis wants to the version that is currently listed in description and take the newer of the two. Overwriting the currently listed version with an older one (as it currently works) could introduce problems if the newer version actually is needed for other non-usethis reasons.
Extracted out this bug in to a new issue: https://github.com/r-lib/usethis/issues/498
Three issues. Maybe the first two were intentional, but it doesn't seem so.
>= 0.1.2
which is older than the version I already had in there (fromuse_tidy_versions()
).*
.