inst/tinytest/runs/multiple_loggers.R

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

lf1 <- tempfile()
lf2 <- 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, "simple", file=lf1)
dump_log(women, "cellwise", file=lf2)

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.