Skip to content
Prev 338792 / 398500 Next

getting arg names in function calls?

Thanks very much to both Bill Dunlap and Hadley Wickham.


       Per Bill's second suggestion, "match.call(eval(bo[[1]]), bo)" 
returned the desired "plot(x = 0, y = 1)" [with bo <- 
body(function()plot(0, 1)].


       Hadley's "standardise_call(bo)" [from library(pryr)] is much 
simpler.


       Thanks again,
       Spencer
On 4/8/2014 7:49 PM, William Dunlap wrote: