-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Inaccurate documentation for name
argument of count()
#5958
Comments
Do you want to do a PR? |
This would be a great first pull request for someone, I think -- I will leave it for a newcomer to the project, if that's okay? If anyone replies to this thread to claim it and wants help, I can answer basic Qs. And if it's still unclaimed in a few months I'll do a PR. |
Hello there, is this an issue a newbie like me can work on ? I'm a great user of R, tidyverse & so on, but I'm new to dev work ... |
Yep this would be a good one to learn the 101 of the dev workflow! You can read up on it more but in short, you'd: fork this repository, clone your forked repo to your computer, edit these lines Lines 26 to 27 in 0445420
document() from the devtools package to regenerate the new documentation for count() , push your changes back to your forked repo, and submit a pull request to this one asking for your changes to be merged in.
|
Great, thanks for the details ! Will look into this ASAP. |
(to be clear: I'm not a developer on this repo, and I can't speak for Hadley et al. Just clarifying that. But I do maintain other R packages so am pretty confident in what I described, though there might be some additional details that they might want). |
Made the changes in the roxygen comments, but when I run devtools:document() I get the following error : Erreur dans new_environment() (depuis context.R#120) : Tried updating rlang but it failed, can't install it again using remotes ... Am I missing something here ? |
Sorry to hear that. It looks like you installed a dev version package from GitHub that has changes that require the dev version of rlang Anyway, this is separate from anything related to this dplyr issue. I would suggest trying to do it all with released package versions if you can. To resolve your situation, you might try |
Thanks for the tips, but unfortunately nothing works. I upgraded R, reinstalled the packages, and I still get this error message when trying to run devtools:document() Need rlang >= 0.4.11.9001 but loaded version is 0.4.11 Can't install rlang dev using remotes or install_github either. |
Bummer, sorry to hear that. Did you install a package from GitHub? I think you could avoid that error by using all CRAN packages. rlang on CRAN is 0.4.11. If you have a package that's requiring the one ending in But, if you don't want to spend more time slogging through this, I don't blame you. This kind of hassle is the worst part of package development 😔 |
The DESCRIPTION file for dplyr has Imports: Maybe that's the problem, since I can't install the dev version for rlang ... |
Ah yes of course, you're working with the dev version of dplyr, because that's the package we're trying to edit 🤦 That's it, sorry. Maybe you could clone the repo but not install it, and do everything with CRAN packages -- unless I don't run into this bad loop with rlang when I'm using Linux, and I suspect Mac is better too, if either is option for you (if you're already using one of those platforms, disregard). |
Ok thanks, tried it without success. That'll be an argument for work to have a Linux setup :) |
See #6288. |
* Document all overridden functions in setops topic, instead of relying on re-exports. * Tweak topic titles and reorganise reference index. Fixes #6017. * Better description of `count(name =)`. Fixes #5958. * Improve documentation of ranking functions. Fixes #6233. Fixes #5943. * Don't include "methods" found in base packages. Fixes #6326 * Polish across docs. Fixes #6205
The documentation for
count()
says of the argumentname
:But when I try calling
count
on a variable namedn
, that's not what happens - it succeeds with a warning:This is trivial, I think, and I like the current behavior of
count()
warning instead of erroring - I'm just noting the documentation mismatch.The text was updated successfully, but these errors were encountered: