no_log: The nop logger

no_logR Documentation

The nop logger

Description

Record nothing, but present logger interface.

Format

An R6 class object.

Creating a logger

no_logger$new(verbose=TRUE)

verbose toggle verbosity

Dump options

$dump(file=NULL,...)

file Ignored. Filename or connection to write output to.
... Ignored. extra options passed to write.csv, except row.names, which is set to FALSE.

No file or output is created, except a message when verbose=TRUE.

Get data

$logdata() Returns empty data.frame.

See Also

Other loggers: cellwise, expression_logger, filedump, simple

Examples


logfile <- tempfile(fileext=".csv")
out <- women %L>%
  start_log(log=no_log$new(verbose=FALSE)) %L>%
  identity() %L>%
  head() %L>% 
  dump_log(file=logfile, stop=TRUE)

cat(readLines(logfile),"\n") # Empty file


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