I have a script that uses the crayon package to color text, and when sourced in the console I get the expected coloring of cat() outputs, but when using rstudioapi::jobRunScript() the job's output isn't colored. For example:
Ah, yes, when I belatedly just now tried simply using control codes to do the colors manually, they come out fine, so this is a crayon issue rather than an rstudio issue. Thanks for helping work this out!
Note, made an issue for this on the crayon repo, including code demonstrating it's selective to jobs launched with rstudioapi::jobRunScript() (though still a crayon issue since explicit color codes work fine).
I have a script that uses the crayon package to color text, and when sourced in the console I get the expected coloring of cat() outputs, but when using
rstudioapi::jobRunScript()the job's output isn't colored. For example:The text was updated successfully, but these errors were encountered: