-
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
Rename and reorganise files #746
Comments
Is this all done now? |
We did another set of renaming/restructuring files previously, this one is still open. |
|
@nikosbosse You could perhaps do this as a final step before release since it's not a functional change? |
Following one of Sam's suggestions, we should think about moving all the files related to one forecast class to one file (i.e. everything related to converting into a forecast and assertions and tests and checks etc.) |
I really like this from the view of thinking about implementing new classes as the process to do so is then copy a single file that you know contains everything you need to create and then work through doing so. I can see the argument that it might be hard to get an impression of the overall package structure though |
Agreed. It makes it easier to find everything about the class in one place. See dist_spec.R for example. |
That's how I learnt to develop classes actually. |
* reorganise some files * rename files * more moving files * more moving functions * move a lot of files * juggle more things around * update docs * appease the gods of linting * move tests around * lint for the lint god * keywords for the keyword got
convencience-functions.R
should be renamed totransform_forecasts.R
set_forecast_unit()
should be moved to a fileget_forecast_unit.R
(maybeforecast_unit.R
?) together withget_forecast_unit()
.correlations.R
should beget_correlations.R
get_
-functions should be moved out ofget_-functions.R
metrics-range.R
-->metrics-interval_range.R
customise_metric()
should maybe get its own file. Alternatively, the corresponding tests should be moved.validate_scores
should really beassert_scores()
The text was updated successfully, but these errors were encountered: