Yes, I mean the .swf file, which is not shipped with shiny, and you
have to download it separately:
http://datatables.net/download/
After you unzip TableTools-x.x.x.zip, you put the three folders js/,
css/, and swf/ under the www/ directory of your app. Here is a minimal
example:
# ui.R
shinyUI(basicPage(
tags$head(
tags$link(href='css/TableTools.css', rel="stylesheet", type="text/css"),
tags$script(src='js/ZeroClipboard.js'),
tags$script(src='js/TableTools.js')
),
dataTableOutput('foo')
))
# server.R
shinyServer(function(input, output) {
output$foo = renderDataTable(
iris,
options = list(
"sDom" = 'T<"clear">lfrtip',
"oTableTools" = list(
"sSwfPath" = "swf/copy_csv_xls_pdf.swf"
))
)
})
Regards,
Yihui