init_log | R Documentation |
Initialize a log file with the current data and time. All major operations run after this will be logged to the specified file.
init_log(log_file)
log_file |
Path to the log file |
log_text
, finish_log
, log_state
file_name <- "~/log.txt"
init_log(file_name)
# Print the contents of the file
scan(file_name, sep = "\n", what = "character")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.