Functions to export or make internal

Open
#885 7 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Refactor
Clarity
Needs clarification
Activity status
Stale
Tech stack
r
Domain
api

Research direction

Review the package's export definitions and the functions named in this issue: as_forecast_generic(), new_forecast(), as_scores(), and apply_metrics(). The work is complete when there is a settled decision about which functions are public or internal and the package exports reflect that decision.

Written by the indexing model from the issue text.

Description

high-priority refactor
Functions we maybe shouldn't export anymore
  • as_forecast_generic()
    Argument for making it internal: you only really need the function if you want to create your own forecast class.
  • validate_forecast()
Functions we maybe should export

The following is a list of functions that people might appreciate who want to create their own forecast class. They are used by us internally. Not sure how/whether others are supposed to use them.

  • new_forecast()
  • as_scores()
  • apply_metrics()
  • ...

Maybe it makes sense to keep them internal for now until we actually see clear need for them?

Dominant language
R
Stars
67
Forks
24
Avg merge
1h 24m
Merged PRs (30d)
2

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from epiforecasts/scoringutils

All issues in epiforecasts/scoringutils

Similar issues

More R issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.