Skip to content

Unnamed objects in list are lost #61

@noamross

Description

@noamross

When a list contains non-list objects without names, they are lost, as in the following:

> a = list(a=1,2, list(c=2))
> b  =as.Node(a)
> b
  levelName
1     Root 
2      °--1
> b$fields
[1] "a"

As you can see, the first object, a, is captured, and the third object, an unnamed list, is also captured, but the unnamed object, 2, disappears. These fields should be captured and named. I'll see what I can do. Should their names be numbers, as with unnamed list objects? Or some other designation, .1, .2, perhaps?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions