title: Any 'large' data frame crashes R DataTable package - is there a solution?
body: <pre><code>library(DT)
  library(nycflights13)
  datatable(flights)
  #&gt; Warning message:
  #&gt; In instance$preRenderHook(instance) :
  #&gt;   It seems your data is too big for client-side DataTables.
  #&gt;   You may consider server-side processing:
  #&gt;   https://rstudio.github.io/DT/server.html
  </code></pre>
  
  <p>When I run the code above R Studio freezes, apparently hanging because the <code>nycflights13::flights</code> data frame is too large for the <code>DT</code> package.</p>
  
  <p><a href="https://stackoverflow.com/questions/40664434/how-to-use-serverside-processing-in-dtdatatable">I found this stackoverflow question</a> that suggests wrapping everything in <code>renderDataTable({})</code> as a solution, but that doesn't seem to help anything. Am I even wrapping things properly?</p>
  
  <pre><code>renderDataTable({flights})
  renderDataTable({datatable(flights)})
  </code></pre>
  
  <p>What is the solution?</p>