col2int() converts color strings to (native) color integers.
int2col() converts (native) color integers to color strings.
Examples
if (requireNamespace("farver", quietly = TRUE)) {
int2col(col2int("red"))
}
#> [1] "#FF0000FF"
col2int() converts color strings to (native) color integers.
int2col() converts (native) color integers to color strings.
if (requireNamespace("farver", quietly = TRUE)) {
int2col(col2int("red"))
}
#> [1] "#FF0000FF"