tests/testthat/_snaps/write_file.md

write_file errors on invalid inputs

Code
  write_file(c("foo", "bar"), tmp)
Condition
  Error:
  ! `text` cannot have more than one element
Code
  write_file("foo", c("bar", tmp))
Condition
  Error:
  ! `path` must be a single element


r-lib/brio documentation built on June 11, 2025, 11:28 p.m.