Learn R Programming

loggit2 (version 2.3.1)

convert_to_csv: Write log to csv file

Description

Creates a csv file from the ndjson log file.

Usage

convert_to_csv(
  file,
  logfile = get_logfile(),
  unsanitize = FALSE,
  last_first = FALSE,
  ...
)

Value

Invisible NULL.

Arguments

file

Path to write csv file to.

logfile

Path to log file to read from.

unsanitize

Should escaped special characters be unescaped?

last_first

Should the last log entry be the first row of the data frame?

...

Additional arguments to pass to utils::write.csv().

Details

Unescaping of special characters can lead to unexpected results. Use unsanitize = TRUE with caution.

Examples

Run this code
if (FALSE) {
  convert_to_csv("my_log.csv")

  convert_to_csv("my_log.csv", logfile = "my_log.log", last_first = TRUE)
}

Run the code above in your browser using DataLab