Validate model data file

validate_model_data(data_file, data_schema)

Arguments

data_file

Path to the .csv file

data_schema

Path to the .yml schema file

Value

An object of class fhub_validations.

Examples

validate_model_data(
  system.file(
    "testdata", "data-processed", "example-model", "2021-07-26-example-model.csv",
    package = "ForecastHubValidations"
  ),
  system.file(
    "testdata", "schema-forecast.yml",
    package = "ForecastHubValidations"
  )
)
#> ! : Filename has to be formed of a date and a model name, separated by an hyphen 
#> 
#>  : '' does not exist in current working directory ('/home/runner/work/HubValidations/HubValidations/docs/reference').