Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expecting a single value in a read.xlsx.default call #262

Open
andreamoro opened this issue Feb 23, 2017 · 2 comments
Open

Expecting a single value in a read.xlsx.default call #262

andreamoro opened this issue Feb 23, 2017 · 2 comments

Comments

@andreamoro
Copy link

Using the following snippet,

xlsxFile <- file.choose()
df1 <- read.xlsx(xlsxFile = xlsxFile, sheet = 1, skipEmptyRows = FALSE)

the error below is returned

Error in read.xlsx.default(xlsxFile = xlsxFile, sheet = 1, skipEmptyRows = FALSE) : 
  expecting a single value

After several failed attempts, I though the progrem could have lied into the XLSX file and so it was. My tabs (autogenerated by a software) all started with a number formiing a sequence (e.g. 1 - TabXY, 2 - TabXY) prepended to split the the huge amount of data leaving them into a single file.
Once the sequence was removed, the problem gone.

@Katzmann
Copy link

I had the same error message with an excel file. The excel file was automatically generated by SAP WebAS. After opening and storing the fiel within excel, the error was gone.

@Rockbaron
Copy link

Very very useful tipp. Never thought of that. open and safe cleared the problem. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants