Is there a way to output text to the R console in color

前端 未结 3 1027
轻奢々
轻奢々 2020-12-03 06:23

I am writing a script and I want to output text messages to the console with different colors depending on conditions. For example: RED for errors and BLUE for warnings, etc

3条回答
  •  离开以前
    2020-12-03 06:53

    On either Linux or Mac, you could try https://github.com/jalvesaq/colorout It doesn't work on Windows.

提交回复
热议问题