You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current error is specific to the forecast package, and doesn't generalise well - especially since the function also works for models and not just forecasts and time series.
The correct approach would be to register S3 methods for each of these classes and not export a default method. However at minimum I think that the error should be improved.
The text was updated successfully, but these errors were encountered:
forecast/R/errors.R
Lines 244 to 254 in 465d278
The error produced can be confusing when users encounter it from using other packages (for example: https://stackoverflow.com/questions/72873984/r-fabletools-accuracy-first-argument-should-be-a-forecast-object-or-a-time-ser).
The current error is specific to the forecast package, and doesn't generalise well - especially since the function also works for models and not just forecasts and time series.
The correct approach would be to register S3 methods for each of these classes and not export a default method. However at minimum I think that the error should be improved.
The text was updated successfully, but these errors were encountered: