jrowen / rhandsontable

A htmlwidgets implementation of Handsontable.js
http://jrowen.github.io/rhandsontable/
Other
383 stars 148 forks source link

NULL input for rhandsontable #417

Open nick-youngblut opened 1 year ago

nick-youngblut commented 1 year ago

At least for handsontable 0.3.8, providing NULL as input for rhandsontable() produces the error:

Error in get_col_types: Unsupported object type: NULL Can't extract column types.

Why not just add a simple check at the start of the function of if(is.null(df)) return(NULL)? This would make the UI more aligned with DT::renderDataTable() and the UI of various shiny functions.