Logs the error message to console before failing
Examples
log_failure("foobar")
#> [1] "foobar"
try(log_failure(foobar))
#> ERROR [2024-10-21 07:31:19] object 'foobar' not found
#> Error in eval(expr, envir) : object 'foobar' not found
Logs the error message to console before failing
log_failure("foobar")
#> [1] "foobar"
try(log_failure(foobar))
#> ERROR [2024-10-21 07:31:19] object 'foobar' not found
#> Error in eval(expr, envir) : object 'foobar' not found