# 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