Skip to content

Records with fields of type list and [[ #1205

Description

@krlmlr

I think both should be identical. Probably there's a similar problem with [[<- . Happy to send a PR.

library(vctrs)

xx <- new_rcrd(list(x = 1:3, a = list(1, 2:3, 4:6)))
field(xx[3], "a")
#> [[1]]
#> [1] 4 5 6
field(xx[[3]], "a")
#> [1] 4 5 6

Created on 2020-08-03 by the reprex package (v0.3.0)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions