Install rdev package.R template using
use_package_r(open = FALSE)
Open the newly created file for editing? Happens in RStudio, if
applicable, or via
package.R is saved as "R/package.R".
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.