test-output-styles: Test case: output styles

Description See Also Examples

Description

Test case: output styles

See Also

Other tests: test-dont, test-figures, test-links, test-lists, test-params

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
25
# This example illustrates some important output types
# The following output should be wrapped over multiple lines
a <- 1:100
a

cat("This some text!\n")
message("This is a message!")
warning("This is a warning!")

# This is a multi-line block
{
  1 + 2
  2 + 2
}

## Not run: 
stop("This is an error!", call. = FALSE)

## End(Not run)


# This code won't generally be run by CRAN. But it
# will be run by pkgdown
b <- 10
a + b

hadley/pkgdown documentation built on Nov. 18, 2018, 12:30 a.m.