Skip to content
Prev 47109 / 63421 Next

on.exit() & sys.on.exit(): Calling them via eval() does not work as hoped

On Sun, Nov 3, 2013 at 2:16 AM, Peter Meilstrup
<peter.meilstrup at gmail.com> wrote:
Brilliant wording :)
Interesting, but also worrying at the same time.  Since these are
undocumented(*) "features" of on.exit()/sys.on.exit() and it works for
on.exit() and not sys.on.exit(), it also means that I'm not sure if I
can rely on this do.call() workaround to not break in the future.  If
would be great to hear what the R core team thinks about this.

(*) There is a small note in help("on.exit") saying "This is a
?special? primitive function: it only evaluates the argument add.".

/Henrik