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

Incomplete sentence in error message #2800

Open
Bisaloo opened this issue Oct 21, 2024 · 0 comments
Open

Incomplete sentence in error message #2800

Bisaloo opened this issue Oct 21, 2024 · 0 comments

Comments

@Bisaloo
Copy link
Contributor

Bisaloo commented Oct 21, 2024

when topics are missing from reference index.

A reprex is provided in pkgdown tests.

Code:

test_that("warns if missing topics", {
ref <- list(
list(contents = c("a", "b"))
)
meta <- list(reference = ref)
pkg <- as_pkgdown(test_path("assets/reference"), override = meta)
expect_snapshot(data_reference_index(pkg), error = TRUE)
})

Output:

# warns if missing topics
Code
data_reference_index(pkg)
Condition
Error:
! In _pkgdown.yml, 3 topics missing from index: "c", "e", and "?".
i Either use `@keywords internal` to drop from index, or

Relevant code chunk to modify:

config_abort(
pkg,
c(
"{sum(missing)} topic{?s} missing from index: {.val {pkg$topics$name[missing]}}.",
i = "Either use {.code @keywords internal} to drop from index, or"
),
call = error_call
)

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

No branches or pull requests

1 participant