RStudio and Shiny App freezes when I set paging = F in renderDT

... I am building a Shiny app from a dataset with large observations. When I set "paging = F" in the renderDT argument, both my RStudio and Shiny crashes/freezes. Once I remove "paging = F", it stops freezing. What do I do? Below is my snippet.

output$species_table <- renderDT({
datatable(species_data, rownames = F,
options = list(paging = F
scrollY = "60vh",
scrollX = "100%"))

My guess is species_data has an extremely large number of rows, so when "paging=F" is specified, the browser tries to render all the rows and crashes. I 've encountered this problem in apps I've created and handled it by adding one or more filters that will limit the number of rows to be returned. In essence, I set the filter defaults to the "most common" view for users, and then they can change the filters as they desire.

1 Like

Thank you so much. This solves it for me.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.