formatted_output: create output function list.

View source: R/utility.R

formatted_outputR Documentation

create output function list.

Description

crate list of functions including print, warning and error, each of which accept format style like sprintf.

Usage

formatted_output(
  outpath = NULL,
  errpath = NULL,
  head_format = "%Y-%m-%d %H:%M:%S",
  use_utc = FALSE,
  use_pid = FALSE
)

Arguments

outpath

Optional; output file path which log all of output.

errpath

Optional; error file path which log only warning and error output.

head_format

header format of each row. Default is %Y-%m-%d %H:%M:%S.

use_utc

Logical; if TRUE, the head format is filled by UTC and head end with 'Z'.

use_pid

Logical; if TRUE, the pid is added as '@xxxxx'.

Value

print, warning and error functions.


hmito/hmRLib documentation built on March 13, 2024, 9:41 p.m.