tests/interactive/test-valgrind.R

# R -d "valgrind --leak-check=full" --no-save -f tests/interactive/test-valgrind.R # nolint
library(autometric)

local({
  temp <- log_support()
  temp <- log_version()
  path <- tempfile()
  log_print(path = path, seconds = 0.5)
  temp <- log_active()
  log_start(path = path, seconds = 0.5)
  temp <- log_active()
  Sys.sleep(2)
  log_phase_set("different phase")
  Sys.sleep(2)
  log_stop()
  temp <- log_active()
  temp <- log_read(path)
  log_phase_reset()
  Sys.sleep(2)
})

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.