write_json_lines: Function to export a data frame as new line JSON, also known...

View source: R/write_json_lines.R

write_json_linesR Documentation

Function to export a data frame as new line JSON, also known as ndjson.

Description

Function to export a data frame as new line JSON, also known as ndjson.

Usage

write_json_lines(df, file, append = FALSE, pagesize = 500, verbose = FALSE)

Arguments

df

Data frame to export.

file

File name for exported new line JSON file.

append

Should the data be appended to file?

pagesize

Number of lines to write to file per iteration.

verbose

Should the function give messages?

Value

Invisible.

Author(s)

Stuart K. Grange


skgrange/threadr documentation built on May 11, 2024, 12:16 p.m.