tests/testthat/_snaps/edition-2/read-fwf.md

fwf_cols throws error when arguments are not length 1 or 2

Code
  fwf_cols(a = 1:3, b = 4:5)
Condition
  Error in `vroom::fwf_cols()`:
  ! All inputs must have the same shape.
  x Found inputs with different lengths: 3 and 2.
  i Provide either single values (widths) or pairs of values (positions).
Code
  fwf_cols(a = c(), b = 4:5)
Condition
  Error in `vroom::fwf_cols()`:
  ! All inputs must have the same shape.
  x Found inputs with different lengths: 0 and 2.
  i Provide either single values (widths) or pairs of values (positions).


Try the readr package in your browser

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

readr documentation built on Feb. 20, 2026, 1:07 a.m.