On 11/03/2011 3:11 PM, Henrik Bengtsson wrote:
On Fri, Mar 11, 2011 at 11:07 AM, Prof Brian Ripley
wrote:
> On Fri, 11 Mar 2011, Duncan Murdoch wrote:
>
>> On 11/03/2011 1:37 PM, Michael Lawrence wrote:
>>>
>>> Thanks for the suggestion, but I don't think that R finalizes all of its
>>> obj
On Fri, Mar 11, 2011 at 11:07 AM, Prof Brian Ripley
wrote:
> On Fri, 11 Mar 2011, Duncan Murdoch wrote:
>
>> On 11/03/2011 1:37 PM, Michael Lawrence wrote:
>>>
>>> Thanks for the suggestion, but I don't think that R finalizes all of its
>>> objects when it quits. At least a simple test suggests th
On Fri, 11 Mar 2011, Duncan Murdoch wrote:
On 11/03/2011 1:37 PM, Michael Lawrence wrote:
Thanks for the suggestion, but I don't think that R finalizes all of its
objects when it quits. At least a simple test suggests that on Linux.
Did you use onexit=TRUE? On Windows that appears to work...
On 11/03/2011 1:37 PM, Michael Lawrence wrote:
Thanks for the suggestion, but I don't think that R finalizes all of its
objects when it quits. At least a simple test suggests that on Linux.
Did you use onexit=TRUE? On Windows that appears to work...
Duncan Murdoch
Michael
On Fri, Mar 11, 2
See onSessionExit() in the R.utils package, e.g.
onSessionExit(function(...) {
cat("Bye bye world!\n");
})
quit();
Please pay attention to the Details section of help(onSessionExit);
there are ways that R can exit that will not be detected/handled.
/Henrik
On Fri, Mar 11, 2011 at 10:37 AM, M
Thanks for the suggestion, but I don't think that R finalizes all of its
objects when it quits. At least a simple test suggests that on Linux.
Michael
On Fri, Mar 11, 2011 at 10:19 AM, Jeffrey Ryan wrote:
> Take a look at reg.finalizer. You'd have to create an object
> internally that would per
Take a look at reg.finalizer. You'd have to create an object
internally that would persist until R exits - and a related function
to handle cleanup of course.
HTH
Jeff
On Fri, Mar 11, 2011 at 12:08 PM, Michael Lawrence
wrote:
> Hi,
>
> Is there any way that a package can listen for when R quits