From jeroen.ooms at stat.ucla.edu  Wed Jul 13 13:04:40 2016
From: jeroen.ooms at stat.ucla.edu (Jeroen Ooms)
Date: Wed, 13 Jul 2016 13:04:40 +0200
Subject: [Rd] Nested tracing with custom callback
In-Reply-To: <SN1PR0201MB19010D493D24263ED57F3984A7310@SN1PR0201MB1901.namprd02.prod.outlook.com>
References: <SN1PR0201MB19010D493D24263ED57F3984A7310@SN1PR0201MB1901.namprd02.prod.outlook.com>
Message-ID: <CABFfbXtS8Ym7RgnHa_EyKxJxTRuti3wrfi4+0XaLLOT1aEcuEw@mail.gmail.com>

On Wed, Jul 13, 2016 at 5:20 AM, Evan James Patterson
<epatters at stanford.edu> wrote:
>
> I would like to install a trace function that gets executed whenever *any* R function is called. In Python, for example, this functionality is provided by the `sys.settrace` function.

Maybe you can adapt from the covr package:
https://github.com/jimhester/covr/blob/master/vignettes/how_it_works.Rmd



[Rd] Nested tracing with custom callback
Jeroen Ooms