CSV Writing Options
csv_write_options(
include_header = TRUE,
batch_size = 1024L,
null_string = "",
delimiter = ",",
eol = "\n",
quoting_style = c("Needed", "AllValid", "None")
)
Whether to write an initial header line with column names
Maximum number of rows processed at a time.
The string to be written for null values. Must not contain quotation marks.
Field delimiter
The end of line character to use for ending rows
How to handle quotes. "Needed" (Only enclose values in quotes which need them, because their CSV rendering can contain quotes itself (e.g. strings or binary values)), "AllValid" (Enclose all valid values in quotes), or "None" (Do not enclose any values in quotes).
tf <- tempfile()
on.exit(unlink(tf))
write_csv_arrow(airquality, tf, write_options = csv_write_options(null_string = "-99"))