Comments (8)
Could it give a warning instead of an error?
from readxl.
Warning could be a better idea.
from readxl.
I think the correct behaviour would be a zero row output
from readxl.
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.
I will resolve this when I'm next working on readxl, which is unlikely to be in the next six weeks.
from readxl.
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.
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.
This is slight variation of #222, where there's a header row but no data rows.
Duplicate of #144
from readxl.
Related Issues (20)
- zip path is too long HOT 5
- Release readxl 1.4.2 HOT 2
- Upkeep for readxl
- Update errors to rlang 1.0.0
- read_excel unable to open file if the file is .xls but it was saved as .xml HOT 1
- Problems reading files with Windows path containing special characters
- FR: Check Excel sheets and consistency with readr
- Access is denied warning on valid paths that get read successfully
- installing readxl package to R 4.1.3 running in anaconda navigator HOT 1
- Can read_excel() allow reading of open Excel workbooks/sheets? HOT 3
- Scientific counting display issues
- Release readxl 1.4.3 HOT 1
- Force col_types for vector of known columns, default guess for other columns HOT 1
- readxl::read_excel fails with `Error: vector`
- col_types = 'text_as_shown' ? HOT 1
- Multible unaddressed libxls vulnerabilities HOT 4
- readxl fails with truncated dates
- Round-off error when using `col_type = "text"`
- Unexpected output when width option is greater than terminal width
- Can no longer install 'readxl': ERROR: compilation failed for package βreadxlβ HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from readxl.