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

fix loading "loadExample.xlsx" #478

Merged
merged 1 commit into from
Jul 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion R/loadWorkbook.R
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,9 @@
)
unlink(paths, recursive = TRUE, force = TRUE)
},
add = TRUE

Check warning on line 110 in R/loadWorkbook.R

View workflow job for this annotation

GitHub Actions / lint

file=R/loadWorkbook.R,line=110,col=6,[indentation_linter] Indentation should be 4 spaces but is 6 spaces.
)
}

Check warning on line 112 in R/loadWorkbook.R

View workflow job for this annotation

GitHub Actions / lint

file=R/loadWorkbook.R,line=112,col=0,[indentation_linter] Indentation should be 2 spaces but is 0 spaces.

## core
if (length(coreXML) == 1) {
Expand Down Expand Up @@ -180,7 +180,7 @@
}


# #active sheet -----------------------------------------------------------

Check warning on line 183 in R/loadWorkbook.R

View workflow job for this annotation

GitHub Actions / lint

file=R/loadWorkbook.R,line=183,col=0,[indentation_linter] Indentation should be 4 spaces but is 0 spaces.



Expand Down Expand Up @@ -609,7 +609,11 @@
wb$Content_Types <- c(wb$Content_Types, sprintf('<Override PartName="/xl/slicerCaches/slicerCache%s.xml" ContentType="application/vnd.ms-excel.slicerCache+xml"/>', inds))
wb$slicerCaches <- sapply(slicerCachesXML[order(nchar(slicerCachesXML), slicerCachesXML)], function(x) removeHeadTag(cppReadFile(x)))
wb$workbook.xml.rels <- c(wb$workbook.xml.rels, sprintf('<Relationship Id="rId%s" Type="http://schemas.microsoft.com/office/2007/relationships/slicerCache" Target="slicerCaches/slicerCache%s.xml"/>', 1E5 + inds, inds))
wb$workbook$extLst <- c(wb$workbook$extLst, genSlicerCachesExtLst(1E5 + inds))

if (!grepl("slicerCaches", wb$workbook$extLst))
wb$workbook$extLst <- c(wb$workbook$extLst, genSlicerCachesExtLst(1E5 + inds))
else
wb$workbook$extLst <- genSlicerCachesExtLst(1E5 + inds)
}


Expand Down
Loading