I have the following code that allows me to download the datatable in Excel. Below I suppress row names. However is it possible to just suppress the row names on the download only? I would still like for them to show up when I view the table in Shiny.
format_fixed_table <- function(input_data, file_name){
result <- datatable(input_data, extensions = 'Buttons',rownames= FALSE,
options = list(dom = 'Bfrtip',
scrollX = TRUE,
lengthMenu = c(10, 20, 50),
pageLength = 10,
buttons = list(list(extend='excel', filename=file_name)),
))
}