tests/testthat/test-logged.R

test_that("`logged()` works", {
  expect_equal(
    logged(mean)(x = 1:3),
    list(
      name = "mean",
      value = 2,
      arguments = list(x = "1:3")
    )
  )
})

Try the vitals package in your browser

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

vitals documentation built on June 24, 2025, 9:08 a.m.