pkgdown (version 1.4.1)

test-dont: Test case: don't

Description

Test case: don't

Arguments

See Also

Other tests: test-crayon, test-figures, test-links, test-lists, test-output-styles, test-params, test-verbatim

Examples

Run this code
# NOT RUN {
  stop("This is an error!", call. = FALSE)
# }
# NOT RUN {
# Inline \donttest is silently ommitted
# }
# NOT RUN {
message("Hi!")
# }
# NOT RUN {
# Block \donttest indicated with comments
# }
# NOT RUN {
# This is a comment
1 + 3
# }
# NOT RUN {
# And works even when not at the top level
if (TRUE) {
  
# }
# NOT RUN {
  1 + 2
  
# }
# NOT RUN {
}

answer <- 1
# }
# NOT RUN {
answer # should be 42
# }

Run the code above in your browser using DataLab