pkgdown (version 1.3.0)

test-output-styles: Test case: output styles

Description

Test case: output styles

Arguments

See Also

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

Examples

Run this code
# NOT RUN {
# 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)
# }
# NOT RUN {
# }
# NOT RUN {
# This code won't generally be run by CRAN. But it
# will be run by pkgdown
b <- 10
a + b
# }

Run the code above in your browser using DataCamp Workspace