specify_buttons <- function(filename) {
list(
list(
extend = "collection",
buttons =
list(
list(
extend = 'csv',
filename = filename,
exportOptions = list(
modifier = list(
page = "all",
search = 'none')
)
),
list(
extend = 'excel',
filename = filename)
),
text = "Download"
)
)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.