Reads a palette YAML file and returns its parsed contents, resolving
meta.extends against the palette it inherits from. The result is cached on
the file's path and modification time, so editing a palette during
development invalidates the entry on its own.
See also
energypal() for a colour vector, energypal_table() for a data frame.
Examples
spec <- energypal_spec("carriers")
names(spec)
#> [1] "meta" "orders" "properties" "colors" "metadata"
spec$meta$title
#> [1] "Energy carriers"
