-
Notifications
You must be signed in to change notification settings - Fork 78
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
removes Note: zip::zip() is deprecated, please use zip::zipr() instead #458
base: master
Are you sure you want to change the base?
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.