log_text: Log text to the current log file

Description Usage Arguments See Also Examples

View source: R/logging.R

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

1

Arguments

text

The text to be logged

See Also

init_log, finish_log, log_state

Examples

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

antonvsdata/amp documentation built on Jan. 8, 2020, 3:15 a.m.