search for: do_onexit

Displaying 2 results from an estimated 2 matches for "do_onexit".

2013 Nov 03
1
WISHLIST: on.exit(..., add=TRUE, where="first") to address common use cases
...t") on.exit(file.remove("local.txt"), add=TRUE, where="first") } Without where="first" (i.e. using where="last" as on.exit() does now), it all becomes unnecessarily complicated. Comments? (*) It seems to come down to adjusting a few lines of code to do_onexit() [http://svn.r-project.org/R/trunk/src/main/builtin.c] to control whether the expression should be prepended or appended to the existing set of recorded expressions. /Henrik
2001 Sep 10
1
on.exit processing
I have encountered a 'strange' behavior in the 'on.exit' processing. I had a function where I setup an 'on.exit' condition and then later on added to it with an 'on.exit({...}, add=T)'. What appeared to happen is that on subsequent calls to the function, even if only the first 'on.exit' was called, it was still executing the one with the 'add=T'.