init_log: Initialize log to a file

Description Usage Arguments Warning See Also Examples

View source: R/logging.R

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

1
init_log(log_file)

Arguments

log_file

Path to the log file

Warning

This overwrites the current contents of the file

See Also

log_text, finish_log, log_state

Examples

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