Dear all, I am a happy user of R console, but I would like to see syntax coloring. I use R 2.12 in Ubuntu Linux. I have found the packages "xterm256" and "highlight", but I was not able to figure out how to use it to highlight the syntax in console output. Also, I tried several GUI interfaces, but I was not able to find something that suits me better than the default R console. R cmdr is definitely not for me, as I don't want to fundamentally change the way I am managing my data in R. Rkwrd seems to be nice (from screenshots), but its installation requires all the base KDE libraries, which I don't want to install. I tried JGR, the GUI for R, but I have found the following problems with this package: - I was not able to change the background color from a repulsive grey, - apparently, GNU readline is not implemented in that package, that is, there is no functionality similar to ctrl-r (which searches through the history for matching commands), something I use frequently, and - tab expansion is of limited use (e.g. doesn't browse files in the current directory when expanding quoted arguments e.g. in "read.table"). All in all, I'd be happy to continue using the plain R console, but syntax highlighting would be nice. Any advice would be extremely welcome. Kind regards, January> sessionInfo()R version 2.12.2 (2011-02-25) Platform: i486-pc-linux-gnu (32-bit) locale: [1] LC_CTYPE=en_US.utf8 LC_NUMERIC=C LC_TIME=en_US.utf8 LC_COLLATE=en_US.utf8 LC_MONETARY=C [6] LC_MESSAGES=en_US.utf8 LC_PAPER=en_US.utf8 LC_NAME=C LC_ADDRESS=C LC_TELEPHONE=C [11] LC_MEASUREMENT=en_US.utf8 LC_IDENTIFICATION=C attached base packages: [1] stats graphics grDevices utils datasets methods base --
RStudio is a new interface. I just started using it and find it very good. You might want to check it out. It does have Ubuntu capabilities, but you have be sure that your graphic drivers are the same as is specified in the RStudio system. Hope this helps Steve Friedman Ph. D. Ecologist / Spatial Statistical Analyst Everglades and Dry Tortugas National Park 950 N Krome Ave (3rd Floor) Homestead, Florida 33034 Steve_Friedman at nps.gov Office (305) 224 - 4282 Fax (305) 224 - 4147 January Weiner <january.weiner at m piib-berlin.mpg.d To e> <r-help at stat.math.ethz.ch> Sent by: cc r-help-bounces at r- project.org Subject [R] Syntax coloring in R console 04/01/2011 06:32 AM Dear all, I am a happy user of R console, but I would like to see syntax coloring. I use R 2.12 in Ubuntu Linux. I have found the packages "xterm256" and "highlight", but I was not able to figure out how to use it to highlight the syntax in console output. Also, I tried several GUI interfaces, but I was not able to find something that suits me better than the default R console. R cmdr is definitely not for me, as I don't want to fundamentally change the way I am managing my data in R. Rkwrd seems to be nice (from screenshots), but its installation requires all the base KDE libraries, which I don't want to install. I tried JGR, the GUI for R, but I have found the following problems with this package: - I was not able to change the background color from a repulsive grey, - apparently, GNU readline is not implemented in that package, that is, there is no functionality similar to ctrl-r (which searches through the history for matching commands), something I use frequently, and - tab expansion is of limited use (e.g. doesn't browse files in the current directory when expanding quoted arguments e.g. in "read.table"). All in all, I'd be happy to continue using the plain R console, but syntax highlighting would be nice. Any advice would be extremely welcome. Kind regards, January> sessionInfo()R version 2.12.2 (2011-02-25) Platform: i486-pc-linux-gnu (32-bit) locale: [1] LC_CTYPE=en_US.utf8 LC_NUMERIC=C LC_TIME=en_US.utf8 LC_COLLATE=en_US.utf8 LC_MONETARY=C [6] LC_MESSAGES=en_US.utf8 LC_PAPER=en_US.utf8 LC_NAME=C LC_ADDRESS=C LC_TELEPHONE=C [11] LC_MEASUREMENT=en_US.utf8 LC_IDENTIFICATION=C attached base packages: [1] stats graphics grDevices utils datasets methods base -- ______________________________________________ R-help at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Hello On Fri, Apr 1, 2011 at 12:32 PM, January Weiner <january.weiner at mpiib-berlin.mpg.de> wrote:> I have found the packages "xterm256" and "highlight", but I was not > able to figure out how to use it to highlight the syntax in console > output. >I've been in this position before, without finding a solution for syntax highlighting in the default R console.> Also, I tried several GUI interfaces, but I was not able to find > something that suits me better than the default R console. R cmdr is > definitely not for me, as I don't want to fundamentally change the way > I am managing my data in R. Rkwrd seems to be nice (from screenshots), > but its installation requires all the base KDE libraries, which I > don't want to install. >Recently RStudio was introduced [1] and, although beta, it received quasi-unanimous acclaim from the community, so you risk finding it useful too. [1] http://alternativeto.net/software/rstudio/about Regards Liviu> I tried JGR, the GUI for R, but I have found the following problems > with this package: > > - I was not able to change the background color from a repulsive grey, > - apparently, GNU readline is not implemented in that package, that > is, there is no functionality similar to ctrl-r (which searches > through the history for matching commands), something I use > frequently, and > - tab expansion is of limited use (e.g. doesn't browse files in the > current directory when expanding quoted arguments e.g. in > "read.table"). > > All in all, I'd be happy to continue using the plain R console, but > syntax highlighting would be nice. Any advice would be extremely > welcome. > > Kind regards, > > January > > > >> sessionInfo() > R version 2.12.2 (2011-02-25) > Platform: i486-pc-linux-gnu (32-bit) > > locale: > ?[1] LC_CTYPE=en_US.utf8 ? ? ? LC_NUMERIC=C > LC_TIME=en_US.utf8 ? ? ? ?LC_COLLATE=en_US.utf8 ? ? LC_MONETARY=C > ?[6] LC_MESSAGES=en_US.utf8 ? ?LC_PAPER=en_US.utf8 ? ? ? LC_NAME=C > ? ? ? ? ? ?LC_ADDRESS=C ? ? ? ? ? ? ?LC_TELEPHONE=C > [11] LC_MEASUREMENT=en_US.utf8 LC_IDENTIFICATION=C > > attached base packages: > [1] stats ? ? graphics ?grDevices utils ? ? datasets ?methods ? base > > > -- > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >-- Do you know how to read? http://www.alienetworks.com/srtest.cfm http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader Do you know how to write? http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail
Dear January, Have you looked at Emacs + ESS? http://ess.r-project.org/ It highlights in the text editor and the actual R process besides coming with a rich set of features and a mailing list filled with helpful Emacs & R users. I've tried several different interfaces and ended up being happiest by far with Emacs + ESS. I also seem to recall Kate or Kedit at least highlighted .R files, but I am not in a position to check right now. Happy hunting, Josh On Fri, Apr 1, 2011 at 3:32 AM, January Weiner <january.weiner at mpiib-berlin.mpg.de> wrote:> Dear all, > > I am a happy user of R console, but I would like to see syntax > coloring. I use R 2.12 in Ubuntu Linux. > > I have found the packages "xterm256" and "highlight", but I was not > able to figure out how to use it to highlight the syntax in console > output. > > Also, I tried several GUI interfaces, but I was not able to find > something that suits me better than the default R console. R cmdr is > definitely not for me, as I don't want to fundamentally change the way > I am managing my data in R. Rkwrd seems to be nice (from screenshots), > but its installation requires all the base KDE libraries, which I > don't want to install. > > I tried JGR, the GUI for R, but I have found the following problems > with this package: > > - I was not able to change the background color from a repulsive grey, > - apparently, GNU readline is not implemented in that package, that > is, there is no functionality similar to ctrl-r (which searches > through the history for matching commands), something I use > frequently, and > - tab expansion is of limited use (e.g. doesn't browse files in the > current directory when expanding quoted arguments e.g. in > "read.table"). > > All in all, I'd be happy to continue using the plain R console, but > syntax highlighting would be nice. Any advice would be extremely > welcome. > > Kind regards, > > January > > > >> sessionInfo() > R version 2.12.2 (2011-02-25) > Platform: i486-pc-linux-gnu (32-bit) > > locale: > ?[1] LC_CTYPE=en_US.utf8 ? ? ? LC_NUMERIC=C > LC_TIME=en_US.utf8 ? ? ? ?LC_COLLATE=en_US.utf8 ? ? LC_MONETARY=C > ?[6] LC_MESSAGES=en_US.utf8 ? ?LC_PAPER=en_US.utf8 ? ? ? LC_NAME=C > ? ? ? ? ? ?LC_ADDRESS=C ? ? ? ? ? ? ?LC_TELEPHONE=C > [11] LC_MEASUREMENT=en_US.utf8 LC_IDENTIFICATION=C > > attached base packages: > [1] stats ? ? graphics ?grDevices utils ? ? datasets ?methods ? base > > > -- > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.-- Joshua Wiley Ph.D. Student, Health Psychology University of California, Los Angeles http://www.joshuawiley.com/
Apparently Analagous Threads
- Crash after (wrongly) applying product operator on object from LIMMA package
- Crash after (wrongly) applying product operator on object from LIMMA package
- Adjusting p values of a matrix
- conditional coloring of output text in console or in GUI
- colour highlighting inputs and outputs in the R terminal?