I'm using DT to build an HTML table and I keep having this massive white space and can't seem to sort out how to get the columns to strength the page. An additional side note is that my left column fix doesn't seem to be fixing when setting scrollX = TRUE.
Here is an example:
library(tidyverse)
library(DT)
iris %>%
group_by(Species) %>%
mutate(across(.cols = c(2:4),
list(avg = mean, SD = sd))) %>%
relocate(Species, before = "Sepal.Length") %>%
datatable(filter = 'top',
options = list(pageLength = 100,
autoWidth = TRUE,
scrollY = "800px",
scrollX= TRUE,
fixedColumns = list(leftColumns = 0)))
