inst/tinytest/test-log_active.R

local({
  if (log_support()) {
    path <- tempfile()
    expect_false(log_active())
    log_start(seconds = 0.5, path = path)
    expect_true(log_active())
    log_stop()
    Sys.sleep(2)
    expect_false(log_active())
    unlink(path)
  }
})

Try the autometric package in your browser

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

autometric documentation built on April 3, 2025, 11:14 p.m.