preprocess_data <- function(input) {
data <- load_data(input)
# error handling: add ID without data -> ignore input
if (is.null(data) && input$id == TRUE) {
return(NULL)
}
data <- data_reduction(input, data)
data <- add_id(input, data)
data
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.