Questions tagged [xlconnect]

XLConnect is a comprehensive and platform-independent R package for manipulating Microsoft Excel files from within R. XLConnect differs from other related R packages in that it is completely cross-platform and as such runs under Windows, Unix/Linux and Mac (32- and 64-bit). Moreover, it does not require any installation of Microsoft Excel or any other special drivers to be able to read & write Excel files.

Filter by
Sorted by
Tagged with
75
votes
10answers
114k views

Read all worksheets in an Excel workbook into an R list with data.frames

I understand that XLConnect can be used to read an Excel worksheet into R. For example, this would read the first worksheet in a workbook called test.xls into R. library(XLConnect) ...
26
votes
3answers
31k views

How to extract sheet names from Excel file in R

I have loaded a workbook into R and read in the worksheets using xlConnect, but I was wondering if there was a way of extracting the names of the sheets perhaps in a vector? So far my code is: ...
18
votes
1answer
40k views

How to fix OutOfMemoryError (Java): GC overhead limit exceeded in r? [duplicate]

I have to read a file in a list of folders and save data in R. I use following code for my test data and it works. When I use the code for the actual data then I get this error Error: ...
15
votes
1answer
5k views

Downloading Excel File from XLConnect with R Shiny

Has anyone tried using the download handler in R Shiny to download a freshly created Excel file with XLConnect? In the ui.R there is the unremarkable line: downloadButton('downloadData', 'Download') ...
11
votes
4answers
12k views

Error in XLConnect

I am trying to import an excel sheet into r. I used the following code: x <- loadWorkbook("x.xlsx") b <- readWorksheet(x, sheet="b") The first line works fine, however, running the second ...
9
votes
2answers
8k views

Extract the number of sheets from an Excel workbook in R (without XLConnect)

I'm relatively new to R (and programming). I have an Excel workbook with 36 sheets, but suppose that I don't know how many sheets there are and I want my code to find that out for me. I have tried ...
9
votes
1answer
7k views

Importing .xlsx file with special characters

I am using the function readWorksheet from the package XLConnect to import Excel sheets in R. These sheets contain special characters (e.g., ø, õ, ú) which R does not handle very well. As far as I ...
9
votes
2answers
2k views

Why R is unable to load a shared object?

I am trying to use XLConnect library in R. If I execute library(XLConnect) I get the following error message: JAVA_HOME cannot be determined from the Registry To resolve this problem I set first ...
8
votes
2answers
3k views

Using R to read out excel-colorinfo

Is there any way to read out the color-index of cells from excel files with R? While I can set the cell color with packages like XLConnect or XLSX, I have found no way to extract the color-...
7
votes
1answer
5k views

Installing R library XLConnect on OS 10.8.2

XLConnect is, as the manual describes it, "a package that allows for reading, writing and manipulation of Microsoft Excel files from within R". Installation on Windows and Linux is straightforward. ...
7
votes
2answers
2k views

Possible to write Excel formulas or data validation using R?

I am trying to write a R data frame to Excel and want to add additional cells/columns that have Excel formulas and/or data validation values (e.g. using the Data/Validation menu in Excel to provide ...
6
votes
1answer
8k views

Package for connecting R and Excel without the Java Virtual Machine

A couple of months ago I found on the Internet information about an R package to connect R with Excel and the other way around (doing basically what xlsx and XLConnect do). However, the main ...
5
votes
2answers
7k views

How to download an .xlsx file in R and load the data into a dataframe?

I'm trying to download an .xlsx file from the eia and getting the following error. The error is: "Error: ZipException (Java): invalid entry size (expected 2385 but got 2390 bytes)" I have tried the ...
4
votes
1answer
2k views

R - Cannot install xlsxjars, 64-bit Windows but trying to load i386

I have been at this problem for far too long now, any help welcomed. I finally got rJava installed and loaded, and as part of it I installed the 64-bit JRE and JDK. R version 3.2.2, 64-bit, running on ...
4
votes
1answer
1k views

Getting numbers computed with formulas with XLConnect

I'd like to read the numbers in an Excel spreadsheet using the XLConnect package. My impression is that it fails to read the numbers which are computed inside Excel using a formula with a dollar sign. ...

15 30 50 per page
1
2 3 4 5
15