Hi All, I wonder if there is a way to print the R output with COLOR? Not the color plots, but the outputs in the console. Thank. casper -- View this message in context: r.789695.n4.nabble.com/How-to-print-colorful-R-output-tp3082750p3082750.html Sent from the R help mailing list archive at Nabble.com.
Yes (depending on what you mean by "output"), but maybe there is a long way to go. The vignette of the Rd2roxygen package is an example: cran.r-project.org/web/packages/Rd2roxygen/vignettes/Rd2roxygen.pdf It makes use of the highlight package and Sweave to output colored code. If the style of the above vignette is what you want, more details are here: yihui.name/en/2010/10/how-to-start-using-pgfsweave-in-lyx-in-one-minute Regards, Yihui -- Yihui Xie <xieyihui at gmail.com> Phone: 515-294-2465 Web: yihui.name Department of Statistics, Iowa State University 2215 Snedecor Hall, Ames, IA On Fri, Dec 10, 2010 at 3:53 PM, casperyc <casperyc at hotmail.co.uk> wrote:> > Hi All, > > I wonder if there is a way to print the R output with COLOR? > Not the color plots, but the outputs in the console. > > Thank. > > casper > -- > View this message in context: r.789695.n4.nabble.com/How-to-print-colorful-R-output-tp3082750p3082750.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > R-help at r-project.org mailing list > stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >
Hello On Fri, Dec 10, 2010 at 10:53 PM, casperyc <casperyc at hotmail.co.uk> wrote:> I wonder if there is a way to print the R output with COLOR? > Not the color plots, but the outputs in the console. >I once asked for this on the list [1], and the are two points: - although technically feasible, say using ncurses, there are currently no facilities for automated formatting of input/output - go for editors that do this automatically, say Emacs or JGR Regards Liviu [1] mail-archive.com/r-help at r-project.org/msg86512.html