Adjusting height and width in DT::datatable R markdown

Viewed 1975

I'm trying to put a table in rmarkdown, using datatable command from DT package. I have my table as pdf like :

enter image description here

which is not readable (very small) and it does not change if I add width/height="in px or %" in to the options list.

How could I get bigger table ?

```{r, fig.align='center', fig.pos='htb!', echo=FALSE, cache=FALSE, warning = FALSE, message = FALSE, tidy=TRUE}
library(DT)
library(webshot)
DT::datatable(cor()$AEP, options = list(dom='t',ordering=F,rowCallback = JS("function(r,d) {$(r).attr('height', '100px')}")))


```
0 Answers
Related