Write ndJSON-formatted log file
write_ndjson(log_df, logfile, echo = TRUE, overwrite = FALSE)
Data frame of log data. Rows are converted to ndjson
entries,
with the columns as the fields.
Log file to write to. Defaults to currently-configured log file.
Echo the ndjson
entry to the R console? Defaults to TRUE
.
Overwrite previous log file data? Defaults to FALSE
, and
so will append new log entries to the log file.