JuliaData / JuliaData/RData.jl

Feature request: support for attributes

Open
#30 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement up for grabs
Dominant language
Julia
Stars
63
Forks
17
PR merge metrics
No merged PRs in 30d

Description

I know it can be tough, since Julia doesn't support anything similar, but many people (including me) store important metadata in attributes.

I guess objects' metadata should be inserted as distinct items in the resulting dictionary.

E.g. if I read object a generated as

a<-"text"
attr(a, 'label') <- 'my label'
save("a", file="obj_a.rda")

then it should produce dictionary with two entries:

  1. "a" → "Kuku!"
  2. "a|label" → "my label"

Character | can be replaced with any other character that cannot occur in variable's name.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No file or test is named; start by locating the RData reader entry point and inspecting how object values are converted into the resulting dictionary. Confirm how R attributes are represented, then add coverage for the example's value and label entries, with completion defined as preserving attributes as distinct dictionary entries.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia, r
Domain
data
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.