init_log: Initialize log to a file

View source: R/logging.R

init_logR Documentation

Initialize log to a file

Description

Initialize a log file with the current data and time. All major operations run after this will be logged to the specified file.

Usage

init_log(log_file)

Arguments

log_file

Path to the log file

See Also

log_text, finish_log, log_state

Examples

file_name <- "~/log.txt"
init_log(file_name)
# 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.