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

Files ending with .RDS (capitalized) are not recognized as format{RDataSingle} #91

Closed
JohannesNE opened this issue Dec 28, 2021 · 6 comments

Comments

@JohannesNE
Copy link

I tried to load a file (file.RDS). This resulted in the error

ArgumentError: Package Libz [2ec943e9-cfe8-584d-b93d-64dcb6d567b7] is required but does not seem to be installed:

- Run `Pkg.instantiate()` to install all recorded dependencies.

Stacktrace...

Changing the file name to file.rds fixed it.

@alyst
Copy link
Collaborator

alyst commented Dec 28, 2021

The mapping of file extension to the file format is defined in FileIO.jl package.
It looks like so far it only defines *.rds extension.
Could you please create an upstream issue in FileIO.jl with a reference to this one?

@JohannesNE
Copy link
Author

I see. This was already filed as an (general) issue. Should i create one specifically for the RSingleData case?

@alyst
Copy link
Collaborator

alyst commented Dec 28, 2021

@JohannesNE Thanks! If there's already a general issue, probably you don't have to create one just for .RDS -- until the maintainers of FileIO.jl decide on the case-sensitivity issue, .RDS support is not likely to be implemented.

@JohannesNE
Copy link
Author

JohannesNE commented Dec 28, 2021

Okay. I'll close this issue, and hope others will find it if they run into the same problem.

@nalimilan
Copy link
Member

A complementary solution would be to introduce a separate RData.load or RData.read function that wouldn't go through FileIO at all. FileIO is nice, but doing RData.load(...) would allow printing an explicit error message when the file doesn't match what RData expects, as the intent of the user is clear.

@oxinabox
Copy link

work around if you don't want to rename the file:

using RData, FileIO
complete_dataset = load(File{format"RDataSingle"}("completeDataset.RDS"))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants