[Rd] Identify \Sexpr call?

Duncan Murdoch murdoch.duncan at gmail.com
Sat Nov 5 16:39:13 CET 2011


On 11-11-05 4:36 AM, Renaud Gaujoux wrote:
> More or less in the same vein as Henrik's post, is it possible to detect
> that a function is being called in an \Sexpr when generating an Rd file?
>
> Thank you
>

Sure:  have it check for a variable (or option or environment setting, 
or whatever) that was created in an earlier \Sexpr.

Or take your life in your hands, and look back up the call stack.

Duncan Murdoch



More information about the R-devel mailing list