I am using DT::datatable() to visualize tables in a R markdown file.
# R markdown file
library(DT)
```{r viewdata}
# this is an example but my actual dataset has 10000 rows and 100 columns
var.df <- data.frame(x = rnorm(1:10000), y = rnorm(1:10000),...)
DT::datatable(data = var.df)
```
When I run this code, I get a warning and the resulting HTML is very slow to load:
DT::datatable(var.df)
Warning message:
In instance$preRenderHook(instance) :
It seems your data is too big for client-side DataTables. You may consider server-side processing: http://rstudio.github.io/DT/server.html
I know that there is a server = TRUE/FALSE
option in DT::renderDataTable()
, but I don't see any server option in DT::datatable
.
How do I use serverside processing using DT::datatable()
?
DT::renderDataTable()
– Waafdatatable()
documentation any option from the underlying javascript library can be used, includingserverSide
link. Yet this is not working..... – Spadixdatatable()
insiderenderDataTable({})
was all that was required to make this work. – Spadix