Skip to content

Improve handling of non-region names in getNamedRegions and add related test#474

Open
bescoto wants to merge 8 commits into
awalker89:masterfrom
bescoto:master
Open

Improve handling of non-region names in getNamedRegions and add related test#474
bescoto wants to merge 8 commits into
awalker89:masterfrom
bescoto:master

Conversation

@bescoto
Copy link
Copy Markdown

@bescoto bescoto commented Jun 6, 2019

Excel names don't need to point to regions, they may point to constants, such as 10000, or other names.
Currently getNamedRegions can skip these, causing the sheets and regions attributes not to line up with the names.
This patch just sets the sheet and region to "" (empty string) for the names like this.

heseber and others added 6 commits November 19, 2018 23:06
Some Excel files contain sheet names for veryHidden sheets that do not have any sheet content. Such sheets have an empty r:id. Their sheet names have to be skipped because otherwise there will be a misalignment between sheet names and sheet indeces.
…ed test

Excel names don't need to point to regions, they may point to constants, such as 10000, or other names.
Currently getNamedRegions can skip these, causing the sheets and regions attributes not to line up with the names.
This patch just sets the sheet and region to "" (empty string) for the names like this.
@codecov
Copy link
Copy Markdown

codecov Bot commented Jun 6, 2019

Codecov Report

❌ Patch coverage is 95.23810% with 1 line in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (master@ead0038). Learn more about missing BASE report.

Files with missing lines Patch % Lines
R/loadWorkbook.R 80.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##             master     #474   +/-   ##
=========================================
  Coverage          ?   60.32%           
=========================================
  Files             ?       30           
  Lines             ?     7155           
  Branches          ?        0           
=========================================
  Hits              ?     4316           
  Misses            ?     2839           
  Partials          ?        0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ycphs
Copy link
Copy Markdown
Contributor

ycphs commented Oct 8, 2019

I implemented your PR in my new fork of the repository https://github.com/ycphs/openxlsx

david-f1976 pushed a commit to david-f1976/openxlsx that referenced this pull request Nov 8, 2019
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

Successfully merging this pull request may close these issues.

3 participants