[R] How to cancel a R function in the command line?

Uwe Ligges ligges at statistik.tu-dortmund.de
Thu Oct 20 19:32:11 CEST 2011



On 20.10.2011 19:22, Rui Esteves wrote:
> Hi Tsjerk,
>
> In my command line it does not.

Perhaps you arfe using a function that calls compiled code that does not 
look for user interrupts?

try it on

repeat{1+1}

...

Uwe Ligges



> Maybe it because I am using linux.
> That is my problem.
>
> Thank you for answering,
> Rui
>
> On Thu, Oct 20, 2011 at 7:18 PM, Tsjerk Wassenaar<tsjerkw at gmail.com>  wrote:
>
>> Hi Rui,
>>
>> In the R terminal ctrl-c cancels the function, not the session.
>>
>> Cheers,
>>
>> Tsjerk
>>
>> On Oct 20, 2011 7:16 PM, "Rui Esteves"<ruimaximo at gmail.com>  wrote:
>>
>> Hi,
>>
>> This question seems very basic but I cannot find an answer on google.
>>
>> I have a R session on a linux command line.
>> I called a function that is taking ages.
>> I want to cancel the function but without killing the R session.
>> What is the shortcut?
>>
>> Thanks,
>> Rui
>>
>>         [[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.
>>
>>
>
> 	[[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.



More information about the R-help mailing list