write_ndjson: Write ndJSON-formatted log file

View source: R/json.R

write_ndjsonR Documentation

Write ndJSON-formatted log file

Description

Write ndJSON-formatted log file

Usage

write_ndjson(log_df, logfile, echo = TRUE, overwrite = FALSE)

Arguments

log_df

Data frame of log data. Rows are converted to ndjson entries, with the columns as the fields.

logfile

Log file to write to. Defaults to currently-configured log file.

echo

Echo the ndjson entry to the R console? Defaults to TRUE.

overwrite

Overwrite previous log file data? Defaults to FALSE, and so will append new log entries to the log file.


ryapric/loggit documentation built on April 16, 2022, 4:19 p.m.