Please check the R code and snapshot below, I want to increase the height of the rows in the table.
library(DT)
datatable(head(iris), rownames = FALSE)
In order to achive this in css, you make use of:
#example tr td {
height: 894px;
}
You can use formatStyle()
to change the row height:
library(DT)
datatable(head(iris), rownames = FALSE) %>%
formatStyle(names(iris), # select all columns in table
height = 894) # set height of rows
The output looks like this (first 2 rows only):