R Shiny - Pre-selection of rows in Select extension for Datatables
问题 How can I pre-select rows with the Select extension for Datatables in Shiny? I've checked the documentation here: https://datatables.net/extensions/select/. But I can't figure it out. I tried specifying rows = 1:3 but that didn't have any effect: library(DT) library(shiny) dat <- iris[1:17,] shinyApp( ui = fluidPage(DTOutput("table")), server = function(input, output, session) { output[["table"]] <- renderDT({ datatable( dat, options = list(select = list( style = "multi", rows = 1:3, selector