Check that the forecast groups don't contain any invalid names (in particular, the empty string)
Usage
validate_group_names(names)
Arguments
- names
A character vector of the group names (without the leading "grp_")
Value
NULL if valid, error otherwise
Examples
# valid
casteval:::validate_group_names(character(0))
casteval:::validate_group_names(c("variable", "scenario", "___12345"))
# invalid
try(
casteval:::validate_group_names(c("variable", ""))
)
#> Error in casteval:::validate_group_names(c("variable", "")) :
#> provided empty group name ('grp_')