tests/sink.R

library(rlang)

# inform() prints to file
local({
  file <- tempfile("inform-file-custom")
  inform("foo", .file = file)
  stopifnot(identical(readLines(file), "foo"))
})
r-lib/rlang documentation built on June 24, 2024, 8:09 p.m.