# Square function
square_function <- function(value){
if (is.numeric(value)) {
square = value * value
cat("The square of", value, "is equal to", square)}
else {
cat("The value '",value,"'", "has to be numeric to calculate the square")
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.