log_text: Log text to the current log file

View source: R/logging.R

log_textR Documentation

Log text to the current log file

Description

The specified text is printed and written to the current log file. Does not overwrite the file. Also used internally by many functions in the package

Usage

log_text(text)

Arguments

text

The text to be logged

See Also

init_log, finish_log, log_state

Examples

file_name <- "~/log.txt"
init_log(file_name)
log_text("Hello World!")
# Print the contents of the file
scan(file_name, sep = "\n", what = "character")


antonvsdata/notame documentation built on Sept. 14, 2024, 11:09 p.m.