I have a shiny DataTable (package "DT") with quite long column names (+ whitespace) that I want to be rendered without name wrapping - i.e. colnames wrapped over 2-3 lines. I have enabled horizontal scrolling to try and facilitate this:
renderDataTable(dataframe_with_long_colnames, ..., options = list(scrollX = TRUE))
but by default the whitespace is collapsed to new lines.
I think this answers my question: https://www.datatables.net/forums/discussion/8923/how-do-you-stop-the-header-from-wrapping-into-multiple-rows but I'm not sure how to translate this to the R function.
In addition, all DataTable options are listed here: https://www.datatables.net/reference/option/
Thanks in advance.