tidyverse / vroom

Fast reading of delimited files
https://vroom.r-lib.org
Other
621 stars 60 forks source link

Printing structure using `str` fails with `col_big_integer` #477

Closed bart1 closed 1 year ago

bart1 commented 2 years ago

The following command fails in rstudio when colorizing the output of str because col_big_integer is not in the switch statement:

vroom(I("x,y\n1,2\n3,4\n"), col_types = list(y=col_integer(), x=col_big_integer())) |> str()

Note this does work when the output is not colorized for example in reprex, I believe the col_big_integer is omitted here: https://github.com/tidyverse/vroom/blob/548344f4826818ca988e80b90cdf7fd837a90561/R/col_types.R#L253