Re: [Rd] Ignore user interrupts

From: Sharpie <>
Date: Mon, 23 Jan 2012 12:00:07 -0800 (PST)

Sharpie wrote
> If not, would it work to move the function call into a C function that
> uses `eval` inside a block protected by BEGIN_SUSPEND_INTERRUPTS?

Just to clarify, if there is no functionality at the R level for evaluating an expression without interrupts, would it be possible to create it by defining a function:

evalWithoutInterrupts <- function(expr, envir = parent.frame()) {
  .Call(do_evalWithoutInterrupts, expr, envir) }

With a C-level implemention:

SEXPR do_evalWithoutInterrupts(SEXP expr, SEXP envir) {
  SEXP result;

    result = eval(expr, envir);
  }END_SUSPEND_INTERRUPTS;   return result;

Would that be a correct way to tackle the problem?


Charlie Sharpsteen
Undergraduate-- Environmental Resources Engineering Humboldt State University
View this message in context:
Sent from the R devel mailing list archive at

______________________________________________ mailing list
Received on Mon 23 Jan 2012 - 20:03:03 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 26 Jan 2012 - 20:40:13 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive