test-output-styles {pkgdown}R Documentation

Test case: output styles

Description

Test case: output styles

See Also

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

Examples

# 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


[Package pkgdown version 1.3.0 Index]