Skip to content

Is using vec_is() in check_valid_cols() too strict? #657

Description

@DavisVaughan

Immediately breaks bench. I faintly remember we mentioned bench using expressions where it didn't have to?

packageVersion("tibble")
#> [1] '2.99.99.9006'

bench::mark(x = 1)
#> All columns in a tibble must be 1d or 2d objects:
#> * Column `expression` is bench_expr

rlang::last_trace()
#>  36. └─bench::mark(x = 1)
#>  37.   ├─base::summary(...) /Users/davis/Desktop/r/packages/bench/R/mark.R:120:2
#>  38.   ├─bench:::bench_mark(tibble::as_tibble(results, validate = FALSE)) /Users/davis/Desktop/r/packages/bench/R/mark.R:120:2
#>  39.   │ └─base::unique(c("bench_mark", class(x))) /Users/davis/Desktop/r/packages/bench/R/mark.R:124:2
#>  40.   ├─tibble::as_tibble(results, validate = FALSE) /Users/davis/Desktop/r/packages/bench/R/mark.R:120:2
#>  41.   └─tibble:::as_tibble.list(results, validate = FALSE)
#>  42.     └─tibble:::lst_to_tibble(x, .rows, .name_repair, col_lengths(x))
#>  43.       └─tibble:::check_valid_cols(x)

Created on 2019-09-30 by the reprex package (v0.2.1)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions