validate_pr: Validate forecast hub from pull request

View source: R/validate_pr.R

validate_prR Documentation

Validate forecast hub from pull request

Description

Validate forecast hub from pull request

Usage

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

## Not run: 
validate_pr(
  "epiforecasts/covid19-forecast-hub-europe",
  536,
  data_folder = "data-processed"
)

## End(Not run)

epiforecasts/ForecastHubValidations documentation built on Oct. 20, 2023, 6:55 p.m.