Skip to content

Commit

Permalink
[xlsb] remove invalid definedNames
Browse files Browse the repository at this point in the history
  • Loading branch information
JanMarvin committed Jan 13, 2025
1 parent 807694c commit a2c34f2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions R/wb_load.R
Original file line number Diff line number Diff line change
Expand Up @@ -1789,6 +1789,12 @@ wb_load <- function(
}
}

# remove defined names without value. these are not valid and are probably
# remnants of xti
if (length(dfn_nms <- wb$workbook$definedNames)) {
wb$workbook$definedNames <- dfn_nms[xml_value(dfn_nms, "definedName") != ""]
}

# create valid rich text strings in shared strings table
if (any(sel <- grepl("<FONT_\\d+/>", wb$sharedStrings))) {

Expand Down

0 comments on commit a2c34f2

Please sign in to comment.