is_valid_color: Test a Character String For Pixiedust Recognized Color Format

Description Usage Arguments Functional Requirements

View source: R/is_valid_color.R

Description

pixiedust recognizes colors as dvips names, rgb(R,G,B), rgba(R,G,B,A), #RRGGBB, or #RRGGBBAA. This code returns a logical indicating if the given character strings are valid.

Usage

1
2
3

Arguments

color

A character vector of color names.

Functional Requirements

  1. Returns a logical vector correctly identifying valid color formats.

  2. Casts an error if color is not a character object.


pixiedust documentation built on Jan. 16, 2021, 5:25 p.m.