I am unable to find any documentation for RDComClient package. I am unable to find the suitable parameter to change the background fill for a cell.
library(RDCOMClient)
xlApp <- COMCreate("Excel.Application")
book = xlApp$Workbooks()$Open("C:/Users/koyeli.majumder/Desktop/Dashboard/National Level Dashboard.xlsb")
sheet = book$Worksheets()$Item(1)
xlApp[["Visible"]] = TRUE
cell <- sheet$Cells(6,6)
cell[["Value"]] <- 3.1
cell[["NumberFormat"]] = "[Red]" # till this it was fine
cell[["Style"]] = 1
This gives error
<checkErrorInfo> 8002000E
Error: Invalid number of parameters.