We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Let's say my _pkgdown.yml contains the following error
reference: - title: contents: - starts_with(c("topic_a", "topic_b"))
In R 4.2, I just get an uninformative warning when I run check_pkgdown()
check_pkgdown()
Warning: In grepl(paste0("^", x), .) : argument 'pattern' has length > 1 and only the first element will be used
I didn't understand it, so I had to use warn = 2 to understand, to get the very helpful message
warn = 2
options(warn = 2) # options(showWarnCalls = TRUE) # maybe will work too Error in `map2()`: ℹ In index: 5. Caused by error in `purrr::map()`: ℹ In index: 6. Caused by error: ! In '_pkgdown.yml', topic must be a known selector function ✖ Not 'starts_with(c("topic_a", "topic_b"))' Caused by error in `purrr::map()`: ℹ In index: 1. Caused by error in `grepl()`: ! (converted from warning) argument 'pattern' has length > 1 and only the first element will be used
I think this should be converted to an error
Thanks
The text was updated successfully, but these errors were encountered:
Should fix with check_string() or similar.
check_string()
Sorry, something went wrong.
Check input types for selector functions
53ce723
Fixes #2323
Improve contents type checking (#2450)
b8bb5d9
* Check input types for selector functions. Fixes #2323 * Improve contents type checking. Fixes #2272 * Strip non-useful purrr errors
Improve contents type checking (r-lib#2450)
3578483
* Check input types for selector functions. Fixes r-lib#2323 * Improve contents type checking. Fixes r-lib#2272 * Strip non-useful purrr errors
Successfully merging a pull request may close this issue.
Let's say my _pkgdown.yml contains the following error
In R 4.2, I just get an uninformative warning when I run
check_pkgdown()
I didn't understand it, so I had to use
warn = 2
to understand, to get the very helpful messageI think this should be converted to an error
Thanks
The text was updated successfully, but these errors were encountered: