deliverChart <- function(div_id,
running_in_shiny = TRUE){
to_eval <- paste0("uiOutput(\"",
div_id,
"\")")
if(running_in_shiny == TRUE){
eval(parse(text = to_eval)
)
} else {
cat(to_eval)
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.