tests/testthat/_snaps/edition-2/col-spec.md

options(readr.show_col_types) controls col spec printing

Code
  out <- read_csv(readr_example("mtcars.csv"))
Message
  Rows: 32 Columns: 11
  -- Column specification --------------------------------------------------------
  Delimiter: ","
  dbl (11): mpg, cyl, disp, hp, drat, wt, qsec, vs, am, gear, carb

  i Use `spec()` to retrieve the full column specification for this data.
  i Specify the column types or set `show_col_types = FALSE` to quiet this message.

show_col_types controls col spec printing

Code
  out <- read_csv(readr_example("mtcars.csv"), show_col_types = TRUE)
Message
  Rows: 32 Columns: 11
  -- Column specification --------------------------------------------------------
  Delimiter: ","
  dbl (11): mpg, cyl, disp, hp, drat, wt, qsec, vs, am, gear, carb

  i Use `spec()` to retrieve the full column specification for this data.
  i Specify the column types or set `show_col_types = FALSE` to quiet this message.


hadley/readr documentation built on Feb. 3, 2024, 9:45 a.m.