如何在 R markdown 中增加数据表高度

how to increase datatable height in R markdown

我遇到了这个问题,我想查看前 10 行,但默认情况下会滚动。

datatable(data, options = list(), class = "display", fillContainer = T, 
       width = NULL, height = 1000, editable = FALSE) 

有人能帮忙吗?

为了解决这个问题,我在 options = list()

中设置了 scrollY = "565px"