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 = get_logfile(),
  echo = get_echo(),
  overwrite = FALSE
)

Arguments

log_df

A data.frame. Entries are converted to ndjson, with the columns as the fields.

logfile

A connection, or a character string naming the file to write to.

echo

Should the log entry (json) be echoed to stdout as well?

overwrite

Overwrite previous log file?

Value

Invisible NULL.


loggit2 documentation built on June 8, 2025, 10:26 a.m.