inst/hbcdtlfb/www/R/outputs/table_substance_routine.R

output$table_substance_routine <- renderDT({
  req(table_substance_routine_data())
  
  datatable(
    table_substance_routine_data() |> select(-Id),
    selection = "single",
    rownames = FALSE,
    escape = FALSE,
    colnames = c(
      "Days of the week" = "Days",
      "Substance" = "Substance",
      "Frequency" = "Frequency"
    )
  )
})
ucsd-dsm/hbcd-tlfb documentation built on July 10, 2022, 5:46 p.m.