[R] printing to the console in color
Prof Brian Ripley
ripley at stats.ox.ac.uk
Thu Apr 24 07:45:20 CEST 2008
If this is RGui on Windows, no. It supports only two colours of text
(which you can set in the preferences dialiog box).
More generally, you send the appopriate escapes to your console to change
colour, and the console/terminal documentation will tell you what those
On Wed, 23 Apr 2008, Applejus wrote:
> Is there a function that would allow me to print things in different colors
> to the CONSOLE, say one line in blue and another line in green?
> Right now, the print() function only prints in navy blue...
> View this message in context: http://www.nabble.com/printing-to-the-console-in-color-tp16834851p16834851.html
> Sent from the R help mailing list archive at Nabble.com.
> R-help at r-project.org mailing list
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
PLEASE do. We ask for minimal information that you have not supplied.
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UK Fax: +44 1865 272595
More information about the R-help