Nothing
Code
tag <- roxy_test_tag(" ")
expect_parse_failure(tag_value(tag))
Output
<warning/rlang_warning>
Warning:
[test.R:1] @test requires a value
Code
expect_parse_failure(tag_inherit(tag))
Output
<warning/rlang_warning>
Warning:
[test.R:1] @test requires a value
Code
expect_parse_failure(tag_name(tag))
Output
<warning/rlang_warning>
Warning:
[test.R:1] @test requires a value
Code
expect_parse_failure(tag_two_part(tag))
Output
<warning/rlang_warning>
Warning:
[test.R:1] @test requires a value
Code
expect_parse_failure(tag_name_description(tag))
Output
<warning/rlang_warning>
Warning:
[test.R:1] @test requires a value
Code
expect_parse_failure(tag_code(tag))
Output
<warning/rlang_warning>
Warning:
[test.R:1] @test requires a value
Code
expect_parse_failure(tag_examples(tag))
Output
<warning/rlang_warning>
Warning:
[test.R:1] @test requires a value
Code
expect_parse_failure(tag_markdown(tag))
Output
<warning/rlang_warning>
Warning:
[test.R:1] @test requires a value
Code
expect_parse_failure(tag_markdown_with_sections(tag))
Output
<warning/rlang_warning>
Warning:
[test.R:1] @test requires a value
Code
tag <- roxy_test_tag("a {")
expect_parse_failure(tag_value(tag))
Output
<warning/rlang_warning>
Warning:
[test.R:1] @test has mismatched braces or quotes
Code
expect_parse_failure(tag_inherit(tag))
Output
<warning/rlang_warning>
Warning:
[test.R:1] @test has mismatched braces or quotes
Code
expect_parse_failure(tag_name(tag))
Output
<warning/rlang_warning>
Warning:
[test.R:1] @test has mismatched braces or quotes
Code
expect_parse_failure(tag_two_part(tag))
Output
<warning/rlang_warning>
Warning:
[test.R:1] @test has mismatched braces or quotes
Code
expect_parse_failure(tag_words(tag))
Output
<warning/rlang_warning>
Warning:
[test.R:1] @test has mismatched braces or quotes
Code
expect_parse_failure(tag_words_line(tag))
Output
<warning/rlang_warning>
Warning:
[test.R:1] @test has mismatched braces or quotes
Code
expect_parse_failure(tag_examples(tag))
Output
<warning/rlang_warning>
Warning:
[test.R:1] @test has mismatched braces or quotes
Code
# markdown tags return empty values
(expect_warning(tag_markdown(tag)))
Output
<warning/rlang_warning>
Warning:
[test.R:1] @test has mismatched braces or quotes
Code
(expect_warning(tag_markdown_with_sections(tag)))
Output
<warning/rlang_warning>
Warning:
[test.R:1] @test has mismatched braces or quotes
Code
markdown_on()
Output
[1] TRUE
Code
tag <- roxy_test_tag("# one\ntwo\n# three\nfour {")
(expect_warning(tag_markdown_with_sections(tag)))
Output
<warning/rlang_warning>
Warning:
[test.R:1] @test has mismatched braces or quotes
Code
tag <- roxy_test_tag("foo params sction")
. <- tag_inherit(tag)
Condition
Warning:
[test.R:1] @test attempts to inherit from unknown type "sction"
Code
tag <- roxy_test_tag("a b c")
expect_parse_failure(tag_name(tag))
Output
<warning/rlang_warning>
Warning:
[test.R:1] @test must have only one argument, not 2
Code
tag <- roxy_test_tag("a")
expect_parse_failure(tag_two_part(tag, "name", "value"))
Output
<warning/rlang_warning>
Warning:
[test.R:1] @test requires name and value
Code
tag <- roxy_test_tag("a b")
expect_parse_failure(tag_words(tag, 3, 3))
Output
<warning/rlang_warning>
Warning:
[test.R:1] @test must have at least 3 words, not 2
Code
expect_parse_failure(tag_words(tag, 1, 1))
Output
<warning/rlang_warning>
Warning:
[test.R:1] @test must have at most 1 word, not 2
Code
tag <- roxy_test_tag("a\nb")
expect_parse_failure(tag_words_line(tag))
Output
<warning/rlang_warning>
Warning:
[test.R:1] @test must be a single line, not 2
i The first line is "a"
Code
tag <- roxy_test_tag("a\nb\n2")
expect_parse_failure(tag_words_line(tag))
Output
<warning/rlang_warning>
Warning:
[test.R:1] @test must be a single line, not 3
i The first line is "a"
Code
tag <- roxy_test_tag("x")
expect_parse_failure(tag_toggle(tag))
Output
<warning/rlang_warning>
Warning:
[test.R:1] @test must not be followed by any text
Code
tag <- roxy_test_tag("a + ")
expect_parse_failure(tag_code(tag))
Output
<warning/rlang_warning>
Warning:
[test.R:1] @test failed to parse
Caused by error in `parse()`:
! <text>:2:0: unexpected end of input
1: a +
^
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.