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 Oct. 31, 2024, 5:35 p.m.