I am trying to write an R data file in Excel and want to add additional cells / columns with Excel formulas and / or data (for example, using the Data / Validation menu in Excel to provide drop-down lists of valid cell values)
I looked at the R: xlsx, XLConnect, and openxlsx packages. They are great for writing cells, but not for formulas or data validation settings.
Currently, I think I have to resort to post-processing xlsx files using AppleScript (on Mac) or a VBA solution. I would like to do all this in R, if possible, so the logic should not be shared between programs.
Of the two: writing data verification parameters for a cell is more important (compared to writing Excel formulas). A use case is to write an R data frame in Excel and include empty columns for corrections. For empty columns, I want to have drop-down lists of valid values ββ(for example, "Yes" / "No") for this column.
Thanks in advance.
source share