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

谁都会走 提交于 2019-11-27 21:48:01
krlmlr

Check out the new crayon package:

library(crayon)
cat(blue("Hello", "world!\n"))

More info on the GitHub page.

Works in RStudio 1.2.360+

The xterm256 package by Romain Francoise allows this sort of thing in general on any console that understands xterm256 interrupts.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!