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

length chart != color/style/ref #318

Closed
Tracked by #317
JanMarvin opened this issue Sep 9, 2022 · 0 comments
Closed
Tracked by #317

length chart != color/style/ref #318

JanMarvin opened this issue Sep 9, 2022 · 0 comments
Labels
bug 🐛 Something isn't working
Milestone

Comments

@JanMarvin
Copy link
Owner

Not every file as matching charts, colors, style and rels. Need to sort this and read and write the files available. Otherwise we can not read the file at all. For the meantime wb_load(..., data_only = TRUE) is a workaround.

openxlsx2/R/wb_load.R

Lines 486 to 491 in 06a40c6

for (crt in seq_along(chartsXML)) {
charts$chart[crt] <- read_xml(chartsXML[crt], pointer = FALSE)
charts$colors[crt] <- read_xml(chartsXML_colors[crt], pointer = FALSE)
charts$style[crt] <- read_xml(chartsXML_styles[crt], pointer = FALSE)
charts$rels[crt] <- read_xml(chartsRels[crt], pointer = FALSE)
}

@JanMarvin JanMarvin added the bug 🐛 Something isn't working label Sep 9, 2022
@JanMarvin JanMarvin added this to the v0.3.0 rc2 milestone Sep 9, 2022
@JanMarvin JanMarvin mentioned this issue Sep 9, 2022
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant