-
Notifications
You must be signed in to change notification settings - Fork 21
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
Issue #981: Convert as_forecast_ to s3 #982
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! 2 thoughts:
as_forecast_binary
is missing "default method", i.e.The input needs to be a data.frame or similar for the default method
(it's a bit annoying that gh doesn't allow you to suggest changes for old code)- we could just make all methods
.data.frame
rather thandefault
. My intuition is that would be cleaner, but not a hill I'm going to die on
oh. Argh. That was an auto-merge branch :P |
I think you need a default method but yeah could update to have that dispatch to the data.frame method. IMO this would be its own PT as this was just making sure everything was the sabe i.e had a default method. |
i.e. you mean docs for it? I think the docs are creaking a bit for these methods |
yeah just meant that for all other methods you added the clarifying words "default method", but not the binary function.
I'll open an issue |
Description
This PR closes #981
Checklist
lintr::lint_package()
to check for style issues introduced by my changes.