Description Usage Arguments Value Functions See Also Examples
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_colour
checks if a color string.
1 2 3 | chk_color(x, x_name = NULL)
chk_colour(x, x_name = NULL)
|
x |
The object to check. |
x_name |
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.
chk_color
: Check Color String Object
chk_colour
: Check Color String Object
1 2 3 4 5 6 7 | # chk_color
chk_color("blue")
try(chk_color("glue"))
# chk_colour
chk_colour("blue")
try(chk_colour("glue"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.