From simon.urbanek at r-project.org  Fri Dec 13 00:15:21 2013
From: simon.urbanek at r-project.org (Simon Urbanek)
Date: Thu, 12 Dec 2013 18:15:21 -0500
Subject: [Rd] internal manipulation of ...
In-Reply-To: <EDC77346-95D8-4562-A49C-889109F5DF92@r-enthusiasts.com>
References: <EDC77346-95D8-4562-A49C-889109F5DF92@r-enthusiasts.com>
Message-ID: <25A6CE5E-D2FC-409D-8AD8-BAE87EAD68C5@r-project.org>


On Dec 12, 2013, at 3:32 PM, Romain Fran?ois <romain at r-enthusiasts.com> wrote:

> Hello, 
> 
> I?m looking for examples on how to manipulate the ... internally, e.g. in a .Call or .External function. 
> 
> I?m particularly interested in accessing the environment in which each contribution to ... can be evaluated. 
> 

Arguments in ... are evaluated *before* being passed down to .Call/.External so there is no ... by the time you enter the C code. AFAIR R doesn't allow you to get at the promises outside of internal code, so you either get the call or the values, but nothing in between.

Cheers,
Simon



> So far, I?m using tricks involving passing down the sys.calls() and sys.frames() down to the C function. The documentation in http://cran.r-project.org/doc/manuals/R-ints.html#Dot_002ddot_002ddot-arguments did not help me a lot. 
> 
> Romain
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
> 



[Rd] internal manipulation of ...
Simon Urbanek