#' Square a number
#' @param x [numeric]\cr
#' Number to square.
#' @return Square of \code{x}.
#' @export
square = function(x) {
assertNumber(x, na.ok = FALSE)
x^2
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.