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),
...
)
GitHub repository address in the format username/repo
Number of the pull request to validate
The path to the folder containing forecasts
The path to the folder containing metadata
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()
An object of class fhub_validations
.
if (FALSE) {
validate_pr(
"epiforecasts/covid19-forecast-hub-europe",
536,
data_folder = "data-processed"
)
}