check_df_cols <- function(df){
# performs some basic checks
if(!"data.frame" %in% class(df)) stop("Your input is not a data.frame!")
if(ncol(df) == 0) stop("Your input seems to have no columns!")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.