title: Error in renderDataTable
body: <p>When I'm trying to run this code as a Shiny app in R, I'm facing this error:</p>
  
  <blockquote>
    <p>Error in renderDataTable({ : unused argument (rownames = FALSE)</p>
  </blockquote>
  
  <pre><code>output$table &lt;- renderDataTable({
  
  if(is.null(fdata()))
  {return ()}
  
  if(input$flevel=="Weekly")
  {
    if(input$flevel2=="Store")
    {
      data&lt;-fdata()
      data &lt;- data[data$SKU == input$xcol,]
      data &lt;- data[data$Store == input$ycol,]
      data
    }
    else if(input$flevel2=="Region")
    {
      data&lt;-fdata()
      data &lt;- data[data$SKU == input$xcol,]
      data &lt;- data[data$Region == input$ycol,]
      # data &lt;- aggregate(Sales~Date+SKU+Region_Name,data = data,FUN = sum,na.rm=TRUE)
      data
    }
  }
  else if(input$flevel=="Monthly")
  {
    if(input$flevel2=="Store")
    {
      dmsales&lt;-MonthManp()
      data&lt;-dmsales[[4]]
      data &lt;- data[data$SKU == input$xcol,]
      data &lt;- data[data$Store == input$ycol,]
      data
    }
    else if(input$flevel2=="Region")
    {
      dmsales&lt;-MonthManp()
      data&lt;-dmsales[[4]]
      data &lt;- data[data$SKU == input$xcol,]
      data &lt;- data[data$Region == input$ycol,]
      data
      # data &lt;- aggregate(Sales~Date+product_id+loc_id+Channel_Name,data = data,FUN = sum,na.rm=TRUE)
    }
  } }, options = list(searching = FALSE),rownames=FALSE)
  </code></pre>
  
  <p>All my brackets are properly closed and the rownames is inside the datatable not the options tab. Can anyone pls help me in this. I'm a newbie in Shiny.</p>