rstudio / gt

Easily generate information-rich, publication-quality tables from R
https://gt.rstudio.com
Other
2.02k stars 206 forks source link

`cols_hide()` should throw an error for any columns not found in `boxh_df` #22

Closed rich-iannone closed 6 years ago

rich-iannone commented 6 years ago

Currently, the function just ignores any names that don't correspond to any in the set of colnames(boxh_df).

rich-iannone commented 6 years ago

The stance on this is reversed now: no error thrown for hidden columns, but an error for columns not in the input dataset. Issue https://github.com/rstudio/gt/issues/26 provides details on an improved implementation.