Skip to content

tribble: "Can't merge the outer name" error introduced in v 3 #775

@misea

Description

@misea

A recent-ish change in tribble broke some existing code of mine.

If a value supplied to tribble has a name of its own, tribble now returns a "Can't merge the outer name" error. Reports an error 3.0.1 and I know it used to work in 2.0.1, though I'm not sure when it broke

# This now fails in tibble 3.0.1, worked in 2.0.1
library(tribble)

v <- c(a = 1)
tribble(~a, v[1])

# Error: Can't merge the outer name `a` with a vector of length > 1.
# Please supply a `.name_spec` specification.

# This works
w = c(1)
tribble(~a, w[1])

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugan unexpected problem or unintended behavior

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions