-
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
#746 - Reorganise files #940
Conversation
I like this idea.
Agree. Needing to export them is maybe good motivation for reducing the number of them that are needed. |
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.
This looks really great. Much nicer. A few minor points/questions
I see the point, but there isn't quite a clear-cut distinction. We could add something like "-generic" to some of the files, but most files don't only contain an S3 generic. Unsure. Inclined to merge this now and revisit later? I updated the test files and am sure I missed something here in there. There are a lot of tests and some of them are probably duplicated and should be cleaned up. But maybe that's a project for another day. |
I haven't done this yet and I'm leaning towards not doing that until after the next CRAN release. We have a hard deadline for the CRAN release on October 31. And my impression is that there is some internal refactoring to do that might make some of those functions obsolete after all so my preference would be to avoid an export --> deprecate cycle here if possible. |
Okay
Ah do we. News to me! |
ooh, sorry, I thought I had mentioned that more explicitly at some point. This is what #920 was about - they now extended the deadline to October 31. But then again we might already be slightly behind our own Q1/2024 deadline :D |
So basically the deadline is we need to fix the author names - but I'd really like to get all the changes up by the end of October as well. |
Description
This PR closes #746.
This PR moves everything around and reshuffles the deck. In particular, it moves everything related to a forecast class to its own
class-forecast-<type>.R
file and everything related to its metrics to ametrics-type.R
file.While I was there I took the chance to make some changes to various functions.
(I am indeed kidding, I did not do that).
I didn't make any changes to actual functions, so this is really just moving around code.
So far I didn't move most of the tests yet - I first wanted to have a pair of eyes on the file structure before I start moving tests back and forth.
Additional thoguhts:
check_input_<forecast_type>
functions #939get_protected_columns()
S3 to avoid hard-coding things #889scoringutils:::
in their code (once anyone actually wants to implement something that we think can't sit inscoringutils
and has to go to CRAN we can still rethink that)Checklist
lintr::lint_package()
to check for style issues introduced by my changes.I have added a news item linked to this PR.