tests/sink.R

library(rlang)

# inform() prints to file
local({
  file <- tempfile("inform-file-custom")
  inform("foo", .file = file)
  stopifnot(identical(readLines(file), "foo"))
})
tidyverse/rlang documentation built on May 17, 2024, 10:22 p.m.