feedback_to_logfile: Add to the logfile. Internal use.

View source: R/feedback.R

feedback_to_logfileR Documentation

Add to the logfile. Internal use.

Description

Helper function for the feedback function to add content to the logfile. Internal use. Use the robust 'feedback' function instead.

Usage

feedback_to_logfile(print_this, type, findme, prefix, suffix, logfile_dir)

Arguments

print_this

(Optional, String, default: "")

type

(Optional, String, default: "Info") E.g. "Warning", "Error". Default: "Info"

findme

(Optional, String, default: "") Recommended with length 10. String to find the message in the code. E.g. 10-digit random hex from https://onlinetools.com/random/generate-random-hexadecimal-numbers

prefix

Prefix (Optional, String, default: "") This is useful if print_this is an array/list. Each entry will then be new row with this prefix.

suffix

Suffix (Optional, String, default: "") Same like prefix but at the end of each line.

logfile_dir

(Optional, String, default: "tempdir()") The absolute path to folder where the logfile will be stored.

Value

No return value, called for side effects (see description)


DIZtools documentation built on Sept. 18, 2023, 9:07 a.m.