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

Read S4 objects #16

Open
ofajardo opened this issue Mar 5, 2019 · 2 comments
Open

Read S4 objects #16

ofajardo opened this issue Mar 5, 2019 · 2 comments

Comments

@ofajardo
Copy link

ofajardo commented Mar 5, 2019

Many times RData or RDs files contain objects that can be interpreted in R only if a particular 3rd party package/library is loaded. When you try to read one of these files in R, you see that those libraries are being loaded automatically.

These files can of course not be read with librdata, but right now librdata gives back the very generic error "Unable to read from file". It would be nice if one could get a more specific error for these cases.

Attached two example files involving two different libraries (tweeterR and MultiAssayExperiment)

R_files_with_dependencies.zip

@evanmiller
Copy link
Collaborator

Hi, I've added a slightly more specific error codes - probably still not helpful, but the error handler will report an error about an Unrecognized S-expression rather than a generic read error.

These files use S4 classes. I haven't figured out how to read or skip over them yet.

@ofajardo
Copy link
Author

that's already good!, at least it will be quicker to guide users about what's happening and what is the limitation

@ofajardo ofajardo changed the title more clear error when loading files with library/package dependencies Read S4 objects Dec 5, 2020
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

2 participants