Validate model data file
validate_model_data(data_file, data_schema)
Path to the .csv
file
Path to the .yml
schema file
An object of class fhub_validations
.
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').