What ways are there to capture output à lacapture.output
but which will retain the ANSI color encoding which comes out of crayon
?
> crayon::green("green")
[1] "\033[32mgreen\033[39m"> capture.output(crayon::green("green"))
[1] "[1] \"green\""
What ways are there to capture output à lacapture.output
but which will retain the ANSI color encoding which comes out of crayon
?
> crayon::green("green")
[1] "\033[32mgreen\033[39m"> capture.output(crayon::green("green"))
[1] "[1] \"green\""