removes Note: zip::zip() is deprecated, please use zip::zipr() instead#458
removes Note: zip::zip() is deprecated, please use zip::zipr() instead#458pachadotdev wants to merge 2 commits intoawalker89:masterfrom
Conversation
Codecov Report
@@ Coverage Diff @@
## master #458 +/- ##
=======================================
Coverage 60.23% 60.23%
=======================================
Files 30 30
Lines 7142 7142
=======================================
Hits 4302 4302
Misses 2840 2840
Continue to review full report at Codecov.
|
|
You'll have to also change the full.names and include.dirs options to zipr to TRUE.
while...
so line 562 in WorkbookClass.R should be otherwise it comes out a mess |
|
Furthermore, it affects reading the file after it's saved...
|
|
hi @mgavin, I'm using this modification in a server (Ubuntu Server 18.04) to export the output to xlsx, and it show no problem to read the downloaded file in LibreOffice and Microsoft Excel. I'll dig the problem a bit more |
|
I think it was a multitude of things. Like, when looking at the underlying xml that gets zipped up into an xlsx, my sheet1.xml had a tag with an attribute like "maxcols = 1025", and then openxlsx would turn that into 1025 column tags... So I'm thinking things got lost in translation, and zipping the xml back up turned it into something unreadable. But I think the list.files options should be changed, because zip kept the relative pathing, while zipr makes every file/directory a top level entry. from help(zip::zip)
to test: (without zipr) (with zipr, as in the commit) (and with zipr, with the changes to the options) Okay, the lists aren't exactly the same... but the paths are there. |
No description provided.