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

fails to create file in non-existent directory

Code
  write_csv(mtcars, file.path(tempdir(), "x/y"))
Condition
  Warning in `open.connection()`:
  cannot open file '<temp>/x/y': No such file or directory
  Error in `open.connection()`:
  ! cannot open the connection

Can change the escape behavior for quotes

Code
  format_delim(df, "\t", escape = "invalid")
Condition
  Error in `match.arg()`:
  ! 'arg' should be one of "double", "backslash", "none"


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.