-
Notifications
You must be signed in to change notification settings - Fork 19
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
Allow manual specification of the ZIP file structure #51
Conversation
The travis failure looks like |
@gaborcsardi Do you have access to a linux environment by chance? |
Codecov Report
@@ Coverage Diff @@
## master #51 +/- ##
==========================================
- Coverage 83.53% 83.33% -0.21%
==========================================
Files 9 9
Lines 498 480 -18
==========================================
- Hits 416 400 -16
+ Misses 82 80 -2
Continue to review full report at Codecov.
|
Thanks! Sorry for the delay, I'll look at this soon. |
AppVeyor failed with zip_process() error code 10 (EOPENWRITE). @gaborcsardi Can you trigger a re-build to ensure this is not a random failure? Thanks! |
I am sorry, but I just realized that we cannot do this, at least not like the current proposal. The problem is that names in lists and vectors are internalized in R, i.e. they are treated as symbols of the language internally. R can only store symbols in its native encoding. Effectively this means that e.g. on Windows, where the encoding is something like latin-1 internally, R cannot have symbols in Unicode. In general storing file or path names as names of vectors or lists in not a good idea. Maybe we could URL-encode the file names? But that's not exactly intuitive. Or have some other way of specifying the structure, without relying on names? |
That's unfortunate. We could easily add a |
Yeah, I think a keys argument is probably the best. |
The PR looks good to me now. |
@gaborcsardi Let me know if you want me to resolve the merge conflicts. |
fixes #50
TODOs:
I did a major rewrite of all the
get_zip_data
related functions to reduce duplication and rewrote all tests that previously directly used those functions.All tests pass on my machine (R 4.0.0, Windows 10)
I didn't update the
zip
documentation yet, but the feature should be complete.