[R] breaking command in command line in R for Mac Aqua

Spencer Graves spencer.graves at pdf.com
Wed Aug 3 17:20:53 CEST 2005


	  My favorite syntax error for such situations is "[}", but as Peter 
said, that won't work if you are in the middle of a quote.  Then one 
might try '"[}'.  If that failed, "'[}" should work.

	  Thanks, Peter.  	
	  spencer graves

Peter Dalgaard wrote:

> Adaikalavan Ramasamy <ramasamy at cancer.org.uk> writes:
> 
> 
>>Why not use an editor ? 
>>
>>I would highly recommend Emacs in combination with Emacs Speaks
>>Statistics (ESS). Section 2.1 of [1] might help with the installation.
>>
>>Otherwise you can try JGR [2] or others [3]. There is a R special
>>interest group for MAC users [4] that you can try.
>>
>>[1] http://www.xemacs.org/Documentation/packages/html/ess_2.html
>>[2] http://stats.math.uni-augsburg.de/JGR/index.shtml
>>[3] http://www.sciviews.org/_rgui/projects/Editors.html
>>[4] https://stat.ethz.ch/mailman/listinfo/r-sig-mac
>>
>>Regards, Adai
> 
> 
> Neither of those prevent you from sending incomplete lines do they?
> 
> In a tight spot, you can alway just generate a syntax error. The thing
> is that you will typically have forgotten how to do that reliably.
> Entering 
> 
>  $$ 
> 
> or 
> 
>  a b
> 
> is a good guess. The main exception is that you could be in the middle
> of a text string, in which case you need a terminating quote first.
> 
>         -p
> 
> 
>>On Tue, 2005-08-02 at 13:34 -0700, Michael Sohn wrote:
>>
>>>I'm using R for Mac Aqua version 2.1.1
>>>
>>>If at the command line, I type:
>>>ls(
>>>and then a return, the command line prompt changes to
>>>a plus sign indicating that the command has not been
>>>completed.  How do I break, or kill, the partial
>>>command?  Sometimes, I type a long command but miss a
>>>bracket or parenthesis.  On a unix or linux version of
>>>R, I can type ctrl-c.  On the Mac, ctrl-c,
>>>command-(dot), and escape do not work.
>>>
>>>Any solutions?
>>>Mike
> 
> 
> 

-- 
Spencer Graves, PhD
Senior Development Engineer
PDF Solutions, Inc.
333 West San Carlos Street Suite 700
San Jose, CA 95110, USA

spencer.graves at pdf.com
www.pdf.com <http://www.pdf.com>
Tel:  408-938-4420
Fax: 408-280-7915




More information about the R-help mailing list