[R] Inheritance and automatic function call on script exit

Ralf B ralf.bierig at gmail.com
Wed Oct 6 17:24:12 CEST 2010


> 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