UPDATE: SOLVED - now the code is updated to format my blue cell
I am new to using XLSX and I am trying to make my second blue row (including the first column) in my output table. But I'm having trouble referencing this cell to make it blue.
Update 3: Under the comment "#try to make cell A2 blue", I can (starting from the third update) refer to the cell; however, I can only reference it by creating a new cell, which then creates a problem with the data that I have already entered. If I create a new cell first, it just overwrites when I add data from the data frame. Is there a way to refer to a cell when it's already created?
My code is below:
library(xlsx)
UPDATE 2: I had a problem simply by making new outlet names and then not displaying the names of the rosers. But if someone else can explain how to reference one cell, that would be awesome!
source share