Skip to content

dcast() error fails opaquely if 'x' is a long expression #7613

@MichaelChirico

Description

@MichaelChirico
tibble(a = c(1, 2, 3, 4, 5, 6, 7, 1, 2, 3, 4, 5, 6, 7), b = c(1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2), c = c(9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 10,
11, 12, 13)) |> dcast(a ~ b, value.var = 'c')
# Error in signal(obj) : bad error message

The problem is we use deparse() where deparse1() is appropriate.

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