New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Check all calls to `as.data.table() to make sure they are not dropping classes we want to keep #587
Comments
The work I see for this is:
|
Excellent! |
Are you fine with me moving this to 2.1.? |
No not really. I think all functions should be clearly testing their output return is the class that is expected and we really want that in place now vs later. I am worried that this will cause people a lot of code errors when porting their code and therefore a lot of frustration. |
Hm... I don't really know how to implement this generic test (given that all the functions have different inputs). I think I'm just going to iterate over all functions and a test for their output class... |
As described in #559, some functions cause an object to lose its
forecast_*
class by callingas.data.table()
. We should go through all functions to make sure this isn't happening / not causing any issues.This likely means creating a unit test for any function that calls
as.data.table()
to make sure it has the output class we expect it to have.The text was updated successfully, but these errors were encountered: