R
R/isColourStr.R
isColourStr.Rd
Test if R can interpret a string as a colour
isColourStr(col)
The string to be tested.
A boolean value, TRUE if col is a valid colour, FALSE otherwise
TRUE
FALSE
isColourStr('black') #> black #> TRUE isColourStr('blakc') #> blakc #> FALSE