by jalvesaq

jalvesaq / colorout

Colorize R output in terminal emulators

215 Stars 17 Forks Last release: over 1 year ago (v1.2-1) 80 Commits 4 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:


colorout is an R package that colorizes R output when running in a Unix (e.g. Linux and OS X) terminal emulator; it does not work on Microsoft Windows. The relevant code is written in C and, thus, it runs very quickly and you should not note any slowdown in R output.


is parsed and numbers, negative numbers, dates in the standard format, strings, indices, and R constants are identified and wrapped by special ansi escape codes that are interpreted by terminal emulators as commands to colorize the output.


is also parsed to identify the expressions "warning" and "error" and their translations to many languages. If these expressions are found, the output is colorized accordingly; otherwise, it is colorized as "stderror" (magenta, by default).


You can customize the colors according to your preference, guided by the color table made by the command

. You can also set the colors to any arbitrary string. In this case, it is up to you to set valid values.

You can also call the function

to set your own patterns to be colorized.


You can install the package by running the following commands in a terminal emulator:

git clone
R CMD INSTALL colorout

Some people prefer to use devtools to install packages from github.

NOTE: 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.

Previous Versions:

Recently released versions are available at and older versions are at



We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.