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.


Try the readr package in your browser

Any scripts or data that you put into this service are public.

readr documentation built on May 29, 2024, 2:37 a.m.