check_is_integer <- function(var, varname) {
if(!is.integer(var)) {
stop(paste0(varname, " must be an integer"))
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.