knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
This is a simple vignette to demonstrate the functions that are available in the DevelExample package. The purpose of this package is to demonstrate the process of adding code to an R function. The full tutorial "Adding code to an R package" can be found at the Campbell lab website under the "Articles" tab.
Let's first load the library:
library(DevelExample)
Next we can run our function with default parameters:
hello()
We can also run the same function but without all of the exclamation marks:
hello(withExcitement = FALSE)
It is usually a good idea to show the session information to help with reproducibility:
sessionInfo()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.