tests/testthat/helper-content-replay.R

test_record_replay <- function(x, tools = list(), .envir = parent.frame()) {
  recorded <- contents_record(x)
  replayed <- contents_replay(recorded, tools = tools, .envir = .envir)
  expect_equal(replayed, x)
}

Try the ellmer package in your browser

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

ellmer documentation built on July 14, 2026, 1:07 a.m.