Regarding the issue of "inserting a newline during debugging":

If I remember correctly, this issue didn't happen in older versions of R.
and it seems connected to some other issues.

There generally seems to be something different with how the R Console is
being rendered, and it doesn't seem to be quite as stable.  I'm speaking of
the difference between versions 2.8 (approximately) to 2.11 or 2.12, on
Windows machines with XP and 7.

One piece of evidence is the other issue where the cursor disappears when
running commands, and actually appears somewhere else that doesn't make
sense.  (This has been discussed already in R-Help)

However, I have also noticed weird behavior when
 - working remotely
 - using Eclipse with the StatET plug-in for R
 - when using Tcl\Tk GUI windows

In general, I have been experiencing more instability with the GUI.  It
seems to have more lag or something.

I have also had some system freezes which I think were related to R.  Since
it always happens after I've been remoting into my desktop, and then come
back to work and view the R console.

Sorry this is a little off topic, I just had the newline insertion thing
happen to me (since I wasn't using Eclipse), and I thought I would check
back to see if there was a way to turn it off.

Thanks,

Gene


On Thu, Jan 13, 2011 at 5:20 AM, Prof Brian Ripley <ripley@stats.ox.ac.uk>wrote:

> You do not mean the "enter" key: it is not that which exits the browser but
> rather a newline (which can be entered via 'return', and in other ways).
>
> This is part of the parser, and there is no way to turn it off.
>
> Somehow other experienced R users have never encountered this.  But if you
> wish you could submit this as a 'wishlist' request to R-bugs, and if enough
> users support it (and especially if someone submits a high-quality patch to
> do this), it might be added in a future release.
>
>
>
> On Wed, 12 Jan 2011, Feng Li wrote:
>
>  Dear R,
>>
>> How can I disable using "enter" key to exit the browser() in debug mode? I
>> would love to have this option because it is so annoying to jump out of
>> the
>> debugging mode unexpectedly when I don't want to. I guess some of us have
>> encouraged at least one of these situations,
>>
>> 1, Accidentally pressed the enter key within the browser.
>>
>> 2, Copy and paste a piece of debugging code containing empty lines to the
>> prompt within the debugging mode.
>>
>> 3, If I paste a piece of code to the prompt to debug as follows, it will
>> eventually jump out before I can do anything.
>>
>> ####### copy starting from this line ##############
>> test <- function()
>> {
>>    x<- 5
>>    browser()
>>    y<-4
>> }
>>
>> test()
>>
>> ######## end of copy at this line ################
>>
>>
>> Any suggestions are most welcome!
>>
>> Feng
>>
>> --
>> Feng Li
>> Department of Statistics
>> Stockholm University
>> 106 91 Stockholm, Sweden
>> http://feng.li/
>>
>>        [[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.
>>
>>
> --
> Brian D. Ripley,                  ripley@stats.ox.ac.uk
> Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/<http://www.stats.ox.ac.uk/%7Eripley/>
> University of Oxford,             Tel:  +44 1865 272861 (self)
> 1 South Parks Road,                     +44 1865 272866 (PA)
> Oxford OX1 3TG, UK                Fax:  +44 1865 272595
>
>
> ______________________________________________
> 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]]

