I found RODBC a real pain in Ubuntu. Maybe because I do not know the right spells, but I switched to RJDBC and they were more fortunate. As discussed here .
As Dirk says, this will not solve your problem with Excel. For writing Excel, I was very lucky with the WriteXLS package. On Ubuntu, it was pretty easy for me to set up. I had Perl and many of the packages already installed, and I just had to install Text :: CSV_XS, which I installed using the GUI package manager. The reason I like WriteXLS is the ability to write data frames to different sheets in an Excel file. And now, when I look at your question, I see that you want to read Excel files, not WRITE. Hell. WriteXLS does not. Stick to gdata, as Dirk said in his comments:
gdata on CRAN , and you will need the read.xls () function:
read.xls("//path//to/excelfile.xls", sheet = 1, verbose=FALSE, pattern, ..., method=c("csv","tsv","tab"), perl="perl")
you may need to run installXLSXsupport , which installs the required Perl modules.
read.xls expects sheet numbers, not names. A method parameter is just an intermediate file format. If your data has tabs, then do not use the tab as an intermediate format. And also for commas and csv.
Jd long
source share