function(input, output) {
require(XLConnect)
wb <- loadWorkbook(output, create = TRUE)
createSheet(wb, name = "output")
writeWorksheet(wb, mtcars, sheet = "output")
saveWorkbook(wb)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.