#' test function
#'
#' performs simple input and output for testing purposes
#' @param input The character input to add to "hello world"
#' @return "hello world" + the input is it is the correct type, else error message
#' @export
test_function <- function(input) {
if (typeof(input) != "character") {
return("wrong type of input")
}
output <- paste("hello world", input, sep = " ")
return(output)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.