tests/sink.R

library(rlang)

# inform() prints to file
local({
  file <- tempfile("inform-file-custom")
  inform("foo", .file = file)
  stopifnot(identical(readLines(file), "foo"))
})

Try the rlang package in your browser

Any scripts or data that you put into this service are public.

rlang documentation built on June 22, 2024, 9:31 a.m.