Converts an R color name (e.g. `"navy"`), a hex string (`"#FF0000"` or `"FF0000"`), or an integer in the range `0x000000`..`0xFFFFFF` into the single `0xRRGGBB` integer that libxlsxwriter expects. Used internally by every `color`/`background`/`foreground` argument of the formatting constructors, and exported so it can be used directly.
See also
Other cell formatting:
is_xl_format(),
xl_format(),
xl_format_groups
