I am able to write a data frame to an excel file, using the RODBC package.
Now I would like to include some formulas, e.g. =A1, which upon opening the excel file are interpreted as such; including “=A1” as text in the data frame results in a string entry “=A1” in the excel file (the value shown in the formula bar is '=A1), and is not interpreted as a formula.
You need to write your file without quotes. When I constructed a tiny file named testcsv.csv with this as contents:
=B2, 2
… And then used the File/Open … menu and used the dialog to open it after selecting All Files as the file type, the expected calculation occurs:
(This is on a Mac with Excel2011, <\strike> so Windoze might be different. <\strike>) Works the same on Excel 2007 running in WinXP.