knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
library(mypackage.2)
To use the function square:
square(3)
To include plots:
plot(1:10, square(1:10))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.