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