[R] lines don't wrap. must scroll horizontally to see/edit a long line in R GUI

Carl Witthoft carl at witthoft.com
Sun Dec 13 23:22:37 CET 2009


Duncan Murdoch wrote:
  "This is by design.  Carriage returns have syntactic meaning in R, so the
editor shouldn't display phantom ones.  In Linux there's no choice
because R doesn't control how text is displayed, but the Windows GUI
gets it right."


I have to disagree here.  Soft-wrapping is the default option in most 
editors, and the OSX R.app gui wraps both input and output.  It's pretty 
easy to tell a bunch of code is (or isn't) all one line unless you don't 
believe in prompts or something :-).

Carl




More information about the R-help mailing list