vctrs icon indicating copy to clipboard operation
vctrs copied to clipboard

Supplying `.ptype` in combinations reduces amount of information in error messages

Open lionel- opened this issue 2 years ago • 0 comments

vctrs::vec_c(1, 1, "")
#> Error in `vec_c()`:
#> ! Can't combine `..1` <double> and `..3` <character>.

vctrs::vec_c(1, 1, "", .ptype = int())
#> Error in `vec_c()`:
#> ! Can't convert <character> to <integer>.

lionel- avatar Dec 10 '21 10:12 lionel-