[英]Enabling crayon in the RStudio console
How do I enable crayon
-powered coloring in the RStudio console? 如何在RStudio控制台中启用
crayon
着色? For me, all the characters are white, and the encoding characters print out as literal text. 对我来说,所有字符都是白色,而编码字符会以文字形式打印出来。
install.packages("crayon")
options(crayon.enabled = FALSE)
crayon::make_style("dodgerblue3")
## Crayon style function, dodgerblue3: example output.
options(crayon.enabled = TRUE)
crayon::make_style("dodgerblue3")
## Crayon style function, dodgerblue3: [38;5;32mexample output.[39m
This is only possible when using RStudio v1.1, which is only available as a preview right now (see https://blog.rstudio.com/2017/09/13/rstudio-v1.1---the-little-things/ ). 这仅在使用RStudio v1.1时才有可能,RStudio v1.1目前仅作为预览可用(请参阅https://blog.rstudio.com/2017/09/13/rstudio-v1.1---the-little-事物/ )。 So make sure you have an updated preview version of RStudio v1.1 first, then it should work.
因此,请确保您首先具有RStudio v1.1的更新的预览版本,然后它应该可以工作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.