search for: suspendinterrupts

Displaying 3 results from an estimated 3 matches for "suspendinterrupts".

2019 May 22
1
make running on.exit expr uninterruptible
Hi, Is there currently any way to guarantee that on.exit does not fail to execute the recorded expression because of a user interrupt arriving during function exit? Consider: f <- function() { suspendInterrupts({ on.exit(suspendInterrupts(cntr_on.exit <<- cntr_on.exit + 1L)) cntr_f <<- cntr_f + 1L }) TRUE } It is possible to interrupt this function such that cntr_f is incremented while cntr_on.exit is not (you might need to adjust timeout_upper to trigger the error on your machine...
2018 Apr 23
0
R 3.5.0 is released
...method to 1-dimensional problems. * matplot(.., panel.first = .) etc now work, as log becomes explicit argument and ... is passed to plot() unevaluated, as suggested by Sebastian Meyer in PR#17386. * Interrupts can be suspended while evaluating an expression using suspendInterrupts. Subexpression can be evaluated with interrupts enabled using allowInterrupts. These functions can be used to make sure cleanup handlers cannot be interrupted. * R 3.5.0 includes a framework that allows packages to provide alternate representations of basic R objects (ALTRE...
2018 Apr 23
0
R 3.5.0 is released
...method to 1-dimensional problems. * matplot(.., panel.first = .) etc now work, as log becomes explicit argument and ... is passed to plot() unevaluated, as suggested by Sebastian Meyer in PR#17386. * Interrupts can be suspended while evaluating an expression using suspendInterrupts. Subexpression can be evaluated with interrupts enabled using allowInterrupts. These functions can be used to make sure cleanup handlers cannot be interrupted. * R 3.5.0 includes a framework that allows packages to provide alternate representations of basic R objects (ALTRE...