-
Notifications
You must be signed in to change notification settings - Fork 56
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
Specify file format explicitly #119
base: master
Are you sure you want to change the base?
Conversation
Codecov Report
@@ Coverage Diff @@
## master #119 +/- ##
=======================================
Coverage 84.00% 84.00%
=======================================
Files 4 4
Lines 25 25
=======================================
Hits 21 21
Misses 4 4
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for tackling this, and again sorry for the inconvenience.
If you'd prefer to rely on the query (as a possible safeguard), FileIO 1.6.1 should fix this. But there may be good reason to just skip the query, so I think this might be worth doing. (I don't know this package well enough to offer concrete advice, all I can say is that if you're controlling all the files then it doesn't seem crazy to skip it.)
Bump 😃 What is the general opinion? Should this change be applied, even if FileIO already fixed the original issue? |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #119 +/- ##
==========================================
- Coverage 83.33% 81.48% -1.86%
==========================================
Files 3 4 +1
Lines 24 27 +3
==========================================
+ Hits 20 22 +2
- Misses 4 5 +1 ☔ View full report in Codecov by Sentry. |
This PR fixes #117 - and does not seem to break the tests. It specifies the file format explicitly when loading ".rda" files instead of relying on the automatic discovery in FileIO. This PR is an alternative to #118.
@timholy My guess is that FileIO 1.6 changed the query mechanism. It seems it prioritized the file ending in FileIO <= 1.5 but with FileIO 1.6 the file type is determined incorrectly as Gzip due to the magic bytes of compressed RData files.