Giter Site home page Giter Site logo

Comments (8)

wdkrnls avatar wdkrnls commented on June 12, 2024

Could it give a warning instead of an error?

from readxl.

byzheng avatar byzheng commented on June 12, 2024

Warning could be a better idea.

from readxl.

hadley avatar hadley commented on June 12, 2024

I think the correct behaviour would be a zero row output

from readxl.

TAwosanya avatar TAwosanya commented on June 12, 2024

Dear Hadley,
Please what do you suggest one can do to solve this problem? My own case is that I have several excel files with several worksheets in each one. I set up the data loading parameters and I use lapply() to read all worksheets across all files so it might be a little difficult to know which worksheet or files that brings the error. Thanks in advance for your VERY QUICK reply

from readxl.

hadley avatar hadley commented on June 12, 2024

I will resolve this when I'm next working on readxl, which is unlikely to be in the next six weeks.

from readxl.

soodoku avatar soodoku commented on June 12, 2024

Dear Hadley,

One more thing, which appears not to have been covered in the comments above: It appears that after the "Error: Skipped over all data", data from subsequent sheets in the file (which have more data) --- is not read in. I suppose it is kind of obvious behavior after the error. But I wanted to make a note of it in the off chance it had escaped your notice.

from readxl.

mehmetaergun avatar mehmetaergun commented on June 12, 2024

I got hit by this one too, while trying to import a workbook with 30+ sheets. Happens at
bd63ea5#commitcomment-19697741

I'm not fluent in Rcpp nor C++ otherwise I'd gladly provide a pull request.

When/if you get a chance, would it be possible to turn the stop to warning and also output the name or the index number of the sheet, so this

this.sheet <- "my sheet" # second sheet

read_excel(load.file, sheet = this.sheet)

would output something like

Rcpp::warning("No data found in sheet: ", sheet_)

No data found in sheet 'my sheet'
or
No data found in sheet 2

My workaround for now was to insert a row with all NAs to the single-row sheet but that of course is bad in terms of data integrity and workflow/automation.

Also, thank you so much for writing this! So happy not to have to depend on java!

from readxl.

jennybc avatar jennybc commented on June 12, 2024

This is slight variation of #222, where there's a header row but no data rows.
Duplicate of #144

from readxl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.