Skip to content

Error on named input for tribble() #871

Closed

Description

@lorenzwalthert

In a huge tribble, I inserted named objects and got no error, and it took forever to realise I must use , instead of = as a separator.

tibble::tribble(
  ~x, ~y,
  # ... old code I had already
  "a", "b",

  # I inserted this
  "c" = "yy",
  "y" = '4'

  # other code
  # ...
)
#> # A tibble: 2 x 2
#>   x     y    
#>   <chr> <chr>
#> 1 a     b    
#> 2 yy    4

Created on 2021-03-31 by the reprex package (v1.0.0)

I suggest to error if any element is named.

Activity

  1. krlmlr commented on Mar 31, 2021

    @krlmlr
    Member

    Good idea. Would you like to pr?

  2. pinned this issue on Apr 16, 2021
  3. lorenzwalthert commented on Apr 16, 2021

    @lorenzwalthert
    ContributorAuthor

    Yes.

  4. added a commit that references this issue on Apr 16, 2021
  5. unpinned this issue on Jun 9, 2021
  6. github-actions commented on Apr 17, 2022

    @github-actions
    Contributor

    This old thread has been automatically locked. If you think you have found something related to this, please open a new issue and link to this old issue if necessary.

  7. locked and limited conversation to collaborators on Apr 17, 2022
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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions