#' @title testfunction
#' @param X numeric value ##you need to have the variable first and then the description
#' @description this function does X*X
#' @return X*X
testfunction = function(X)
{
y=X*X
return(y)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.