Add a given msg to a log file

add_log(msg, x = NULL, log)

Arguments

msg

, principal part of the message to be added

x

character, secondary part of the message, will be indented to look like a list. If length(x) is 0, nothing is added.

log,

character the log file to update

Examples

if (FALSE) {
add_log("Some trouble occurs", c("bad resolution", "missing openings"), LOG)
}