Validate forecast hub from pull request

validate_pr(
  gh_repo,
  pr_number,
  data_folder,
  metadata_folder,
  local = identical(Sys.getenv("GITHUB_ACTIONS"), "true") &&
    identical(Sys.getenv("GITHUB_REPOSITORY"), gh_repo),
  ...
)

Arguments

gh_repo

GitHub repository address in the format username/repo

pr_number

Number of the pull request to validate

data_folder

The path to the folder containing forecasts

metadata_folder

The path to the folder containing metadata

local

Logical. Is this function called from your local computer or from a continuous integration system. By default, it tries to guess the answer based on the values of some environment variables

...

Arguments passed to validate_repository()

Value

An object of class fhub_validations.

Examples

if (FALSE) {
validate_pr(
  "epiforecasts/covid19-forecast-hub-europe",
  536,
  data_folder = "data-processed"
)
}