Code
expect_parse_failure(roxy_tag_eval(roxy_test_tag(val = 1)))
Output
<message/rlang_message>
Message:
x test.R:1: @test must evaluate to a character vector.
Code
expect_parse_failure(roxy_tag_eval(roxy_test_tag(val = NA_character_)))
Output
<message/rlang_message>
Message:
x test.R:1: @test must not contain any missing values.
Code
expect_parse_failure(roxy_tag_eval(roxy_test_tag(val = quote(stop("Uhoh")))))
Output
<message/rlang_message>
Message:
x test.R:1: @test failed to evaluate.
Caused by error:
! Uhoh
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.