From epatters at stanford.edu  Thu Jul 14 04:08:03 2016
From: epatters at stanford.edu (Evan James Patterson)
Date: Thu, 14 Jul 2016 02:08:03 +0000
Subject: [Rd] Nested tracing with custom callback
In-Reply-To: <CABFfbXtS8Ym7RgnHa_EyKxJxTRuti3wrfi4+0XaLLOT1aEcuEw@mail.gmail.com>
References: <SN1PR0201MB19010D493D24263ED57F3984A7310@SN1PR0201MB1901.namprd02.prod.outlook.com>,
	<CABFfbXtS8Ym7RgnHa_EyKxJxTRuti3wrfi4+0XaLLOT1aEcuEw@mail.gmail.com>
Message-ID: <SN1PR0201MB19011381653938DEFD05E5FDA7320@SN1PR0201MB1901.namprd02.prod.outlook.com>

Hi Jeroen,

That was exactly what I was looking for. Thanks!

Evan


From: jeroenooms at gmail.com <jeroenooms at gmail.com> on behalf of Jeroen Ooms <jeroen.ooms at stat.ucla.edu>
Sent: Wednesday, July 13, 2016 4:04 AM
To: Evan James Patterson
Cc: r-devel at r-project.org
Subject: Re: [Rd] Nested tracing with custom callback
?   
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


jimhester/covr
github.com
covr - Test coverage reports for R

    


[Rd] Nested tracing with custom callback
Evan James Patterson