rlang tracebacks look great in the CLI, but they are not very log friendly.
When logging it's relatively hard to get a nice readable output. paste(cli::ansi_strip(format([trace](rlang::trace_back()))), collapse = "\n") kinda works and is good enough, but it would be nice to have some argument in the format method to just switch of all color output.
rlang tracebacks look great in the CLI, but they are not very log friendly.
When logging it's relatively hard to get a nice readable output.
paste(cli::ansi_strip(format([trace](rlang::trace_back()))), collapse = "\n")kinda works and is good enough, but it would be nice to have some argument in the format method to just switch of all color output.