Skip to content
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

Indicate argument type #1940

Merged
merged 4 commits into from
Jul 24, 2024
Merged

Indicate argument type #1940

merged 4 commits into from
Jul 24, 2024

Conversation

MikeJohnPage
Copy link
Contributor

On several occasions now I have tried to add a minimum package version using a double like so:

usethis::use_package("my_package", min_version = 1.1.0)

Each time I get an error, as I incorrectly guessed that min_version would require a numeric type. While I think the error message is helpful enough (Error: unexpected numeric contstant in "usethis...), I think the documentation could be improved.

Currently, it is only clear that min_version should be a character vector when looking at the examples. The parameter documentation is not clear in and of itself.

MikeJohnPage and others added 4 commits January 29, 2024 08:27
Make it clear that `min_version` expects a character vector, and not a double/integer when specifying exact versions.
@jennybc
Copy link
Member

jennybc commented Jul 24, 2024

Thanks!

@jennybc jennybc merged commit 93f4410 into r-lib:main Jul 24, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants