test-dont: Test case: don't

Description See Also Examples

Description

Test case: don't

See Also

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

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
## Not run: 
  stop("This is an error!", call. = FALSE)

## End(Not run)

# Inline \donttest is silently ommitted
message("Hi!")

# Block \donttest indicated with comments

# This is a comment
1 + 3


# And works even when not at the top level
if (TRUE) {
  
  1 + 2
  
}

answer <- 1

answer # should be 42

Paradigm4/pkgdown documentation built on June 3, 2020, 12:30 a.m.