tests/testthat/_snaps/edition-2/write.md

fails to create file in non-existent directory

Code
  write_csv(mtcars, file.path(tempdir(), "x/y"))
Condition
  Error:
  ! Cannot open file for writing:
  * '<temp>/x/y'

Can change the escape behavior for quotes

Code
  format_delim(df, "\t", escape = "invalid")
Condition
  Error in `vroom::vroom_format()`:
  ! `escape` must be one of "double", "backslash", or "none", not "invalid".


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.