Viju Moses
2009-Dec-13 03:34 UTC
[R] lines don't wrap. must scroll horizontally to see/edit a long line in R GUI
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.
Jorge Ivan Velez
2009-Dec-13 03:39 UTC
[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]]
Duncan Murdoch
2009-Dec-13 11:05 UTC
[R] lines don't wrap. must scroll horizontally to see/edit a long line in R GUI
On 12/12/2009 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.Yes it was, I replied to that message:>> Which version are you talking about? I don't recall Rgui ever wrapping >> input. The config settings affect output. Maybe you're thinking of Rterm?You also don't answer my question. If you are claiming something has changed, you need to tell us how to see the change. Duncan Murdoch> > 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.
Carl Witthoft
2009-Dec-13 22:22 UTC
[R] lines don't wrap. must scroll horizontally to see/edit a long line in R GUI
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