我正在使用 DT 0.28,当我指定标题参数时:
DT::datatable (
gps$summary[], extension = "Buttons",
caption = tagList(h1("Caption")),
options = list(
autoWidth = TRUE, buttons = c('csv', 'excel'), dom = 'Bfrtip',
pagingType = "full_numbers", processing = TRUE, scrollX = TRUE,
stateSave = TRUE),
selection = list(mode = current_table_selection(), selected = 1, target = 'row'))
})
它没有出现在列标题上方,如此处的示例(在第 2.7 节中) 而是标题显示在我的列标题和表格数据行之间!
有人知道问题是什么吗?