msiVis <- function(dataset) {
if ( is.symbol(substitute(dataset)) )
dataset <- deparse(substitute(dataset))
data <- try(get(dataset, envir=globalenv()), silent=TRUE)
if ( inherits(data, get_supported_classes()) ) {
shinyApp(ui=msiUI(), server=msiServer(dataset))
} else {
shinyApp(ui=msiUI(), server=msiServer(NULL))
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.