Does the argument contain a function that returns hexadecimal colors?
Source:R/check-scalar-isHexColorFunction.R
check-scalar-isHexColorFunction.Rd
This assert check is intended primarily to check for RColorBrewer or viridis hexadecimal color value return.
Examples
## TRUE ====
x <- viridis::viridis
isHexColorFunction(x)
#> [1] TRUE
## FALSE ====
x <- ggplot2::scale_color_manual
isHexColorFunction(x)
#> [1] FALSE