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

Viju Moses vijumoses at gmail.com
Sun Dec 13 18:47:30 CET 2009


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:istazahn at gmail.com] 
Sent: Sunday, December 13, 2009 19:01
To: Viju Moses
Cc: Jorge Ivan Velez; r-help at 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 <vijumoses at 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:jorgeivanvelez at gmail.com]
> Sent: Sunday, December 13, 2009 9:09
> To: Viju Moses
> Cc: r-help at 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 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.
>
>
>
>
>        [[alternative HTML version deleted]]
>
> ______________________________________________
> 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.
>



-- 
Ista Zahn
Graduate student
University of Rochester
Department of Clinical and Social Psychology
http://yourpsyche.org




More information about the R-help mailing list