tests/testthat/_snaps/write-lines.md

write_file errors if given a character vector of length != 1

Code
  write_file(character(), tmp)
Condition
  Error:
  ! Expected string vector of length 1
Code
  write_file(c("foo", "bar"), tmp)
Condition
  Error:
  ! Expected string vector of length 1


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.