powered by
Checks that x is a string (non-missing character vector of length 1) that specifies a color.
chk_color checks if a color string.
chk_color
chk_colour checks if a color string.
chk_colour
chk_color(x, x_name = NULL)chk_colour(x, x_name = NULL)
chk_colour(x, x_name = NULL)
The object to check.
A string of the name of object x or NULL.
NULL, invisibly. Called for the side effect of throwing an error if the condition is not met.
NULL
chk_color: Check Color String Object
chk_colour: Check Color String Object
vld_color()
# NOT RUN { # chk_color chk_color("blue") try(chk_color("glue")) # chk_colour chk_colour("blue") try(chk_colour("glue")) # }
Run the code above in your browser using DataLab