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()


campbio/DevelExample documentation built on May 17, 2022, 2:03 p.m.