pdimens / harpy

Process raw haplotagging data, from raw sequences to phased haplotypes, batteries included.
https://pdimens.github.io/harpy
GNU General Public License v3.0
13 stars 1 forks source link

[reports] give all tables with CSV output custom filename #114

Closed pdimens closed 3 months ago

pdimens commented 3 months ago

Description of feature

The default DT behavior is to save the CSV as the webpage name + .csv, but we should be able to specify a custom and (more informative) filename:

library(DT)

datatable(
  mtcars,
  extensions = 'Buttons',
  options = list(
    dom = 'Bfrtip',
    buttons = list(
      list(
        extend = "csv",
        filename = "my_custom_filename"
      )
    )
  )
)