Skip to content

RDS reader#42

Merged
JeltevanBoheemen merged 7 commits into
developfrom
feature/rds-files
Jul 9, 2026
Merged

RDS reader#42
JeltevanBoheemen merged 7 commits into
developfrom
feature/rds-files

Conversation

@lukavdplas

Copy link
Copy Markdown
Contributor

Adds a reader for extracting RDS (R data serialisation) files.

@lukavdplas

Copy link
Copy Markdown
Contributor Author

@JeltevanBoheemen this and #43 were already in CentreForDigitalHumanities/Textcavator#1987, so unless you skipped reviewing those specific changes at the time, there's no need to review them again.

@JeltevanBoheemen JeltevanBoheemen left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will admit to thinking you misspelled RDF.

Good implementation.


def data_from_file(self, path: str) -> Iterable[Dict]:
result = pyreadr.read_r(path)
data: pandas.DataFrame = result['data']

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea to provide a type annotation here

@JeltevanBoheemen
JeltevanBoheemen merged commit 980601d into develop Jul 9, 2026
4 checks passed
@JeltevanBoheemen
JeltevanBoheemen deleted the feature/rds-files branch July 9, 2026 13:54
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

Successfully merging this pull request may close these issues.

2 participants