Closed shuckle16 closed 3 years ago
Hello, thank you for your work on this package!
I was using sparsify the other day and accidentally input a data.frame, resulting in this error message.
sparsify
library(mltools) sparsify(iris) #> Error in `[.data.frame`(dt, , cols.numeric, with = FALSE): unused argument (with = FALSE)
so I went and added the additional check is.data.table to sparsify.R for a clearer error.
is.data.table
Ran devtools::test() and all was good!
devtools::test()
Thanks again!
Thank you for this!
Hello, thank you for your work on this package!
I was using
sparsify
the other day and accidentally input a data.frame, resulting in this error message.so I went and added the additional check
is.data.table
to sparsify.R for a clearer error.Ran
devtools::test()
and all was good!Thanks again!