Check if character string is a valid color representation

is.color(x)

Arguments

x

value(s) to be tested

Details

see http://stackoverflow.com/questions/13289009/check-if-character-string-is-a-valid-color-representation/13290832#13290832

See also

pptx, docx

Examples

is.color( c(NA, "black", "blackk", "1", "#00", "#000000") )
#> <NA> black blackk 1 #00 #000000 #> FALSE TRUE FALSE TRUE FALSE TRUE