Skip to contents

Choose a directory in which to save the log file. If this is not called, no log file is created.

Usage

initialise_log(log_directory)

Arguments

log_directory

String containing directory to save log file

Value

Character string containing the full path to the newly-created log file

Examples

log_name <- initialise_log(".")

log_name
#> [1] "C:\\Users\\pquan\\Documents\\Rworkspace\\daiquiri\\docs\\reference\\daiquiri_20230718_143736.log"
# \dontshow{
close_log()
#> [1] "C:\\Users\\pquan\\Documents\\Rworkspace\\daiquiri\\docs\\reference\\daiquiri_20230718_143736.log"
file.remove(log_name)
#> [1] TRUE
# }