daroczig / logger

A lightweight, modern and flexible, log4j and futile.logger inspired logging utility for R
https://daroczig.github.io/logger
249 stars 38 forks source link

add info on how to log a data frame #122

Closed aaelony closed 10 months ago

aaelony commented 10 months ago

Add the following example on how to print a data frame or data.table to the Intro.html

formatter_data_frame <- function(df, ...) {
    pander::pander_return(df, style = 'simple')
}
log_formatter(formatter_data_frame)
log_info(mtcars)
aaelony commented 10 months ago

Did a fix and a pull request #123