inst/tinytest/runs/dump_test.R

library(lumberjack)
women$id <- 1:15

logfile <- tempfile()

start_log(women, simple$new(verbose=FALSE))
start_log(women, cellwise$new(key='id',verbose=FALSE))

women[1,1] <- 2*women[1,1]
women$ratio <- women$height/women$weight

dump_log(women, logger="simple", file=logfile)

Try the lumberjack package in your browser

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

lumberjack documentation built on March 31, 2023, 7:56 p.m.