Skip to content

Calling names() on vectors without names #15

Closed

Description

@jimhester

Not entirely sure if it should return R_NilValue or an empty character vector, probably the latter.

Something like this should reproduce it.

cpp11::writable::doubles x;
x.names()

Activity

  1. hadley commented on Jun 22, 2020

    @hadley
    Member

    I'd vote for empty character vector.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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