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

Book rendering fails due to demonstration error included in code #136

Open
Zagamog opened this issue Apr 25, 2022 · 0 comments
Open

Book rendering fails due to demonstration error included in code #136

Zagamog opened this issue Apr 25, 2022 · 0 comments

Comments

@Zagamog
Copy link

Zagamog commented Apr 25, 2022

Hello ! I get the following error message in trying to render the book in an RStudio interface.

Quitting from lines 13131-13136 (outstanding-shiny-ui.Rmd)
Error in reporter$stop_if_needed() : Test failed
Calls: ... eval_with_user_handlers -> eval -> eval -> test_that ->
Execution halted
Exited with status 1.

The lines in question look like a test that is meant to fail for didactic purposes, but I could not find instructions about how to avoid the
book rendering to fail because of this test.

The lines mentioned in the code are as follows.

test_that("validate width works", {
  expect_error(tabler_card(width = -1))
  expect_error(tabler_card(width = 13))
  expect_error(tabler_card(width = "hello world"))
})

Notice how the three above tests elegantly fail. The provided context ("validate width works") immediately indicates the culprit, which is a game changer for debugging.

If there would be a way to escape these lines, the code could continue rendering until the end or at least until a next error message. Thank you !

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