powered by
Check whether a character string is a valid color specification.
IsColor(x, null.ok = FALSE)
'character' vector. color specification
'logical' flag. If set to TRUE, x may also be NULL.
TRUE
x
NULL
A 'logical' vector of the same length as argument x.
# NOT RUN { IsColor(c("red", "zzz", "#FFFFFF", "#7FAF1B111")) # }
Run the code above in your browser using DataLab