Open pulpdood opened 5 months ago
249 is the code for an R namespace, which is not currently supported. Adding it to the file was probably unintentional.
Implementing enough support to be able to load the dataset should not be difficult to do. In principle we should add the new enum for namespace and the code for the parser and converter to read the namespace name (I think that is all the info that is written) and return a special class containing it. Of course, the namespace itself would not be available in Python.
I am currently a bit busy, but if you want you can propose a PR. Otherwise I will try to do it when I have more time.
I am receiving the same error while reading RDS files. I checked the original R object and found no namespace element attached to it. Any thoughts? Thanks
Bug description summary
Hi, this project is really cool!
I was just working on migrating R code written by a member of my team to Python, and there are some RDS files containing models which were generated by R. I'm trying to use rdata to parse the RDS file, but I get the following error:
ValueError: 249 is not a valid RObjectType
Please forgive me I am not aware exactly what the RDS file contains, and I don't think I can disclose it. Thank you so much!
Code to reproduce the bug
No response
Data file(s)
No response
Expected result
Valid python object I can use
Actual result
Got an error
Traceback (if an exception is raised)
Software versions
rdata version: 0.11.2 OS: macOS Sonoma 14.2.1
Additional context
No response