[R] Inheritance and automatic function call on script exit

Ralf B ralf.bierig at gmail.com
Wed Oct 6 17:27:00 CEST 2010


I think base:on.exit() will do the trick. Thank you :)

Ralf

On Wed, Oct 6, 2010 at 11:24 AM, Ralf B <ralf.bierig at gmail.com> wrote:
>> If you are running these interactively, you could make your own
>> source() function.  In that function you could define the super and
>> subscripts, and have it call writeOutput on.exit().  I suspect you
>> could get something like that to work even in batch mode by having R
>> load the function by default and some tweaking of your scripts.
>
> What if I do not control the subscripts but only the superscript. In
> other words, other people keep adding subscripts and the function of
> my superscript only ensures certain standard behaviors.
>
> Ralf
>
>
>
>>
>>>
>>> Best,
>>> Ralf
>>>
>>> ______________________________________________
>>> R-help at r-project.org mailing list
>>> https://stat.ethz.ch/mailman/listinfo/r-help
>>> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
>>> and provide commented, minimal, self-contained, reproducible code.
>>>
>>
>> --
>> Joshua Wiley
>> Ph.D. Student, Health Psychology
>> University of California, Los Angeles
>> http://www.joshuawiley.com/
>>
>



More information about the R-help mailing list