write_radiator_tsv: Write radiator tsv

write_radiator_tsvR Documentation

Write radiator tsv

Description

Write tsv file. Using the package readr. Takes cares of the file path and proper filenaming. The complete filename is built with the path.folder + filename + datetime + .tsv.

Used internally in radiator and assigner and might be of interest for users.

Usage

write_radiator_tsv(
  data,
  path.folder = NULL,
  filename,
  append = FALSE,
  col.names = TRUE,
  date = TRUE,
  internal = FALSE,
  write.message = "standard",
  verbose = FALSE
)

Arguments

data

An object in the global environment. Ideally a tibble...

path.folder

(optional) Path to write the file. With default, the working directory is used. Default: path.folder = NULL.

filename

(required, character string) Name of the file.

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. Default: append = FALSE.

col.names

If FALSE, column names will not be included at the top of the file. If TRUE, column names will be included. If not specified, col_names will take the opposite value given to append. Default: col.names = TRUE.

date

(logical) To append time to the filename. Default: date = TRUE.

internal

(optional, logical) This is used inside radiator internal code and it stops from writting the file. Default: internal = FALSE.

write.message

(optional, character) Print a message in the console after writing file. With write.message = NULL, nothing is printed in the console. Default: write.message = "standard". This will print message("File written: ", basename(filename)).

verbose

(optional, logical) verbose = TRUE to be chatty during execution. Default: verbose = FALSE.

Value

A file written in the working directory.

Author(s)

Thierry Gosselin thierrygosselin@icloud.com

read_rad

Examples

## Not run: 
radiator::write_radiator_tsv(data = tidy.data, filename = "data.shark")

## End(Not run)

thierrygosselin/radiator documentation built on July 4, 2025, 7:52 a.m.