Helper function for the feedback function to print stuff to the console. Everything will also be added to the logfile. Internal use. Use the robust 'feedback' function instead.
feedback_to_console(
print_this,
type,
findme,
prefix,
suffix,
logjs,
logfile_dir,
headless = TRUE
)
(Optional, String, default: "")
(Optional, String, default: "Info") E.g. "Warning", "Error". Default: "Info"
(Optional, String, default: "") Recommended with length 10. String to find the message in the code. E.g. 10-digit random hex from (<https://www.browserling.com/tools/random-hex>) or (<https://onlinerandomtools.com/generate-random-hexadecimal-numbers>)
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 (Optional, String, default: "") Same like prefix but at the end of each line.
(Optional, Boolean, default: FALSE) If true (default: false) the print_this string will also be printed to the javascript-console. This only makes sense, if the gui is active.
(Optional, String, default: "tempdir()") The absolute path to folder where the logfile will be stored.
(Optional, Boolean, default: TRUE) Indicating, if the function is run only in the console (headless = TRUE) or on a GUI frontend (headless = FALSE).
No return value, called for side effects (see description)