Many applications have what is known as "soft wrapping", where the text wraps visually without inserting a new line. I don't use Windows, so I don't know if the R gui can do this or not, but I still maintain that the proper solution is to break your long input lines manually at places that both make syntactic sense and make the code easier to read.
-Ista On Sun, Dec 13, 2009 at 12:47 PM, Viju Moses <vijumo...@gmail.com> wrote: > Thanks for answering. But this is the default behavior when using R (or > anything else) in any linux terminal. > > -----Original Message----- > From: Ista Zahn [mailto:istaz...@gmail.com] > Sent: Sunday, December 13, 2009 19:01 > To: Viju Moses > Cc: Jorge Ivan Velez; r-help@r-project.org > Subject: Re: [R] lines don't wrap. must scroll horizontally to see/edit a > long line in R GUI > > H Viju, > Automatically breaking _input_ lines is dangerous, because line > breaks have meaning in R. It sounds to me like you need to use the > Return key to insert line breaks at the appropriate places. > > -Ista > > On Sat, Dec 12, 2009 at 11:29 PM, Viju Moses <vijumo...@gmail.com> wrote: >> Dear Jorge, Thanks. >> >> But. >> >> (My R console width is set by default at 91, which is fine. >> >> Output for R>1:120 wraps correctly already. ) >> >> >> >> The problem is that when I am typing a command, it does not wrap like it >> does in this email while typing. As I am reach the right border, a >> horizontal scroll bar appears, and as I keep typing further, the initial >> part of the line starts disappearing below the left border of the console. >> So, I am unable to see a long line completely without moving the scroll > bar >> right and left. >> >> >> >> From: Jorge Ivan Velez [mailto:jorgeivanve...@gmail.com] >> Sent: Sunday, December 13, 2009 9:09 >> To: Viju Moses >> Cc: r-help@r-project.org >> Subject: Re: [R] lines don't wrap. must scroll horizontally to see/edit a >> long line in R GUI >> >> >> >> Hi Viju, >> >> >> >> Here is a suggestion: >> >> >> >> R> options(width = 80) >> >> R> 1:120 >> >> >> >> HTH, >> >> Jorge >> >> >> >> On Sat, Dec 12, 2009 at 10:34 PM, Viju Moses <> wrote: >> >> I'm facing this problem on R GUI version 2.10.0 on Windows Vista. I have > not >> changed Windows settings or R GUI settings much except to change from MDI > to >> SDI. >> >> Someone else reported this problem a few months ago: >> https://stat.ethz.ch/pipermail/r-help/2009-April/195714.html >> but it wasn't followed up. >> >> I'd change the settings on Preferences, but there's no help explaining the >> various options. (That's another problem, by the way... Is there a link > you >> know?) >> >> I guess fixing this would be straightforward. Hope someone who did will >> reply. Thanks. >> >> ______________________________________________ >> R-help@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. >> >> >> >> >> [[alternative HTML version deleted]] >> >> ______________________________________________ >> R-help@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. >> > > > > -- > Ista Zahn > Graduate student > University of Rochester > Department of Clinical and Social Psychology > http://yourpsyche.org > > -- Ista Zahn Graduate student University of Rochester Department of Clinical and Social Psychology http://yourpsyche.org ______________________________________________ R-help@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.