【发布时间】:2014-05-31 00:53:28
【问题描述】:
我对闪亮的 R 包有疑问,目前在网上找不到任何帮助。我正在寻找一种在数据表中为背景着色的可能性,该数据表由 ui.R 中的dataTableOutput 实现。 server.R中renderDataTable中是否有option来设置dataTableOutput中一行的背景色。这应该被动地完成,所以我有索引,并且引用 data Table 中某些元素的索引应该是彩色的。
服务器.R
indices # reactive, let's say 1,5,4,3 and this is referring to the elements cat, mouse, dog, bird
output$datatable <- renderDataTable(expr = datatable, options = list(???)) # the rows with cat, mouse, dog, bird in the column n should be coloured in a different way
(这不是一个最小的工作示例)
感谢您的帮助!
【问题讨论】: