View source: R/utils-palettes.R
check_palette | R Documentation |
Checks values against those available in
available_palette_types()
and available_palettes()
.
check_palette(palette_type, palette, error_call = rlang::caller_env())
check_palette_type(palette_type, error_call = rlang::caller_env())
palette_type , palette |
String. |
error_call |
Environment to reference in error messages. |
The value being checked is returned invisibly if the check is successful. Otherwise the function will return an error.
check_palette_type("sg")
check_palette("sg", "main")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.