validate_pr | R Documentation |
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),
...
)
gh_repo |
GitHub repository address in the format |
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 |
An object of class fhub_validations
.
## Not run:
validate_pr(
"epiforecasts/covid19-forecast-hub-europe",
536,
data_folder = "data-processed"
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.