Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to increase datatable height in R markdown

Tags:

r

r-markdown

dt

I'm facing this issue I want to see the first 10 rows but it gives scrolling by default.

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

enter image description here

Can anyone help, please?

like image 533
Piyush Kumar Avatar asked Mar 05 '26 02:03

Piyush Kumar


1 Answers

To overcome this issue I set scrollY = "565px" in the options = list()

like image 60
Piyush Kumar Avatar answered Mar 07 '26 16:03

Piyush Kumar



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!