R syntax highlighting in Terminal

Use something like ess on emacs or RStudio for syntax highlighting for R instead of expecting it to work in the terminal.


I've finally found a library that meets my needs.
Now I'm much happier with my coding environment.

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

Another option now would be to use radian instead of the default R prompt.

Tags:

Terminal

R