If you add the pageLength= attribute you can set how many rows to show initially. And by adjusting the lengthMenu= c() you can also control the sizes of offered in the drop down, You can also turn search on or off with searching =FALSE
And by using the helper functions you can set the style just as you would in traditional CSS on a webpage. Notice the last one, line-height should adjust the row height.
Edited: I moved all the code together for you to see how it works. Sorry I was not clearer up front. The %>%is necessary as is devtools::install_github("rstudio/DT") version of DT.
If you add the
pageLength=
attribute you can set how many rows to show initially. And by adjusting thelengthMenu= c()
you can also control the sizes of offered in the drop down, You can also turn search on or off withsearching =FALSE
And by using the helper functions you can set the style just as you would in traditional CSS on a webpage. Notice the last one, line-height should adjust the row height.
Edited: I moved all the code together for you to see how it works. Sorry I was not clearer up front. The
%>%
is necessary as isdevtools::install_github("rstudio/DT")
version of DT.