palette_check: Check Hexadecimal Code Formatting

View source: R/palette_check.R

palette_checkR Documentation

Check Hexadecimal Code Formatting

Description

Accepts the hexadecimal code vector and tests if it is formatted correctly

Usage

palette_check(palette)

Arguments

palette

(character) Vector of hexadecimal codes returned by 'palette_extract()', '..._sort()', or '..._subsample()'

Value

An error message or nothing

Examples

# Check for misformatted hexcodes
palette_check(palette = c("#8e847a", "#9fc7f2"))

lterpalettefinder documentation built on Jan. 22, 2023, 1:21 a.m.