Quantcast
Channel: Active questions tagged r - Stack Overflow
Viewing all articles
Browse latest Browse all 201839

How do I get capture.output functionality while capturing ANSI color codes from crayon?

$
0
0

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\""

Viewing all articles
Browse latest Browse all 201839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>