write_temp_delim: A simply write txt to a temp file with a logging feature

Description Usage Arguments

View source: R/delim.R

Description

Write a delimited text file to a temporary path. Path to the temporary text file is returned.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
write_temp_delim(
  x,
  delim = " ",
  na = NA,
  append = FALSE,
  col_name = !append,
  quote_escape = double,
  eol = "\n",
  log = "DEPRECATED",
  log_details = ""
)

Arguments

x

A data frame or tibble to write to disk.

delim

Delimiter used to separate values. Defaults to " " for write_delim(), "," for write_excel_csv() and ";" for write_excel_csv2(). Must be a single character.

na

String used for missing values. Defaults to NA. Missing values will never be quoted; strings with the same value as na will always be quoted.

append

If FALSE, will overwrite existing file. If TRUE, will append to existing file. In both cases, if the file does not exist a new file is created.

quote_escape \Sexpr[results=rd, stage=render]{lifecycle::badge("deprecated")}

, use the escape argument instead.

eol

The end of line character to use. Most commonly either "\n" for Unix style newlines, or "\r\n" for Windows style newlines.


meerapatelmd/broca documentation built on Dec. 27, 2021, 2:03 p.m.