Skip to content

transpose() on invalid data should result in error, not warning #164

Description

@huftis

As discussed at http://blog.rstudio.org/2016/01/06/purrr-0-2-0/#comment-20462 running transpose() on lists of non-conforming dimensions should result in an error, not a warning.

Currently, the following leads to an empty $error element (and a $result element where the z data in the original object has disappeared):

x = rerun(5, x = runif(1), y = runif(5))
x[[4]]$z = 3:5
safely(transpose)(x)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugan unexpected problem or unintended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions