gpt4 book ai didi

终端中的 R 语法高亮显示

转载 作者:行者123 更新时间:2023-12-02 18:30:45 26 4
gpt4 key购买 nike

我们可以在终端中获得 R 的语法突出显示吗?

最佳答案

我终于找到了一个满足我需求的库。
现在我对我的编码环境更加满意。

colorout is an R package that colorizes R output when running in a terminal emulator.The package cannot be on CRAN because it changes code already loaded by R and this is prohibited by the CRAN Repository Policy. The package replaces the functions that output results and messages to R Console, and this is necessary because we cannot colorize the output without replacing these functions. To install it, do the following in R:

install.packages("devtools")
devtools::install_github("jalvesaq/colorout")
library("colorout")
# do something

关于终端中的 R 语法高亮显示,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14355369/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com