write_ndjson: Write ndJSON-formatted log file

Description Usage Arguments

View source: R/json.R

Description

Write ndJSON-formatted log file

Usage

1
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.


loggit documentation built on Feb. 28, 2021, 9:06 a.m.