Bug in recipe checker: System/Reference name check fails if an incorrect time horizon is provided
The recipe checker fails mid-check if a time horizon other than "Seasonal" or "Decadal" is provided, because it cannot find the corresponding archive.
ERROR [2023-02-28 11:57:58] The element 'Horizon' in the recipe must be one of the following: subseasonal, seasonal, decadal.
Error in recipe$Analysis$Datasets$System$name %in% names(archive$System) :
object 'archive' not found
Therefore, the check is not completed because the script fails before reaching the end.
Solution: Adding an extra condition to the name check.