I'm replicating a manually created Excel spreadsheet, in which the users are very specific on HOW the sheet should look (exact cell spacing, exact coloring with specific conditions, margins/borders, etc).
I'm able to do everything I need in R using openxlsx (and a few other packages).
The problem is simple: I can't find a way to apply a two-color gradient to a single cell. Yellow on top, orange on bottom.
I've been looking at the notes on the openxlsx package, and found information on gradient data bars. This is NOT what I'm looking for... I need just simple two-color formatting.
If it is possible, my guess would be something like this:
library(openxlsx)
line1 <- createStyle(halign = "left", textDecoration = "bold", fontName = "Calibri", fontSize = "11", fgFill = c(_____,_____))
Note: I'm working on a non-friendly Java computer. Xlsx package is not an option for me. Additionally, I'm somewhat familiar with the nuance of tidyxl, but I would prefer to use openxlsx.
Thanks in advance.