[R] Automatic paren/bracket closing in 2.5.0?

Duncan Murdoch murdoch at stats.uwo.ca
Mon Jun 18 13:36:12 CEST 2007


On 18/06/2007 12:30 AM, Adam D. I. Kramer wrote:
> Hello,
> 
>  	Just upgraded to 2.5.0, and found that R now includes an rparen
> (right parentheses) or rbracket whenever I enter in an lparen. While I can
> see the use of this function, it doesn't mesh well with my personal style of
> using R (e.g., using the up arrow, adding an rparen, jumping to the
> beginning of the line, and then wrapping a summary, for instance).
> 
> Some 10 minutes of google searching has failed to come up with a solution
> for turning this feature off--any suggestions from the list?

You don't say your OS.  If it's MacOSX (which I think is the only 
platform with this feature), then see the R-sig-mac list, and in 
particular Simon Urbanek's posting on May 23:

> On May 23, 2007, at 3:55 PM, Roberto Osorio wrote:
> 
>> > I can't find a preference to disable brace completion in the  
>> > console in R 2.5.0 GUI 1.19.
> 
> Unfortunately it didn't make it to the Preferences UI, so you have to  
> paste this in Terminal:
> 
> defaults write org.R-project.R auto.close.parens NO
> 
> If you want to revert back to the default you can use:
> 
> defaults delete org.R-project.R auto.close.parens
> 
> 

Duncan Murdoch



More information about the R-help mailing list