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 July 13, 2024, 3:13 p.m.