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

215 setops list #219

Merged
merged 7 commits into from
Jul 12, 2021
Merged

215 setops list #219

merged 7 commits into from
Jul 12, 2021

Conversation

jmbarbone
Copy link
Contributor

@jmbarbone jmbarbone commented Jul 7, 2021

This corrects failures from the previous PR, due partially from not resetting options.

This also has a change for the internal getDefinedNamesSheet() as that was causing some test failures. I'm not sure the quick-fix is made exactly as intended and it may warrant some additional testing.

The xml2 package isn't imported in but may be a better/safer option if there are other uses. An example:

library(xml2)
x <- "<definedName name=\"_xlnm._FilterDatabase\" localSheetId=\"0\" hidden=\"1\">'A & B < D > D'!$A$1:$A$10</definedName>"
(html <- read_html(x))
#> {html_document}
#> <html>
#> [1] <body><definedname name="_xlnm._FilterDatabase" localsheetid="0" hidden=" ...
(text <- xml_text(html))
#> [1] "'A & B < D > D'!$A$1:$A$10"
sub("['](.*)['].*", "\\1", text)
#> [1] "A & B < D > D"

Created on 2021-07-06 by the reprex package (v2.0.0)

@codecov-commenter
Copy link

Codecov Report

Merging #219 (9c56bc8) into master (00fc559) will increase coverage by 1.01%.
The diff coverage is 91.66%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #219      +/-   ##
==========================================
+ Coverage   64.58%   65.60%   +1.01%     
==========================================
  Files          34       34              
  Lines        8876     8919      +43     
==========================================
+ Hits         5733     5851     +118     
+ Misses       3143     3068      -75     
Impacted Files Coverage Δ
R/openXL.R 0.00% <0.00%> (ø)
R/utils.R 94.11% <ø> (ø)
src/write_file_2.cpp 0.00% <0.00%> (ø)
R/readWorkbook.R 87.63% <66.66%> (-0.05%) ⬇️
src/read_workbook.cpp 90.26% <95.94%> (-0.19%) ⬇️
R/WorkbookClass.R 57.24% <100.00%> (+0.23%) ⬆️
R/helperFunctions.R 71.67% <100.00%> (-1.25%) ⬇️
R/openxlsx.R 90.47% <100.00%> (+30.47%) ⬆️
R/workbook_read_workbook.R 89.32% <100.00%> (+0.56%) ⬆️
R/workbook_write_data.R 91.50% <100.00%> (ø)
... and 12 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 838043d...9c56bc8. Read the comment docs.

@ycphs ycphs merged commit 63b21b7 into ycphs:master Jul 12, 2021
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.

4 participants