#' @useDynLib testing
#' @importFrom Rcpp sourceCpp
NULL
#' Add
#' @param x x
#' @param y y
#' @export
add <- function(x, y = 1) {
if (!is.numeric(x)) {
stop("Cannot add non-numbers!")
}
add_(x, y)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.