[Rd] Converting an unevaluted list to list of unevaluted elements

From: hadley wickham <h.wickham_at_gmail.com>
Date: Thu 02 Feb 2006 - 00:16:11 GMT

Thanks to Andy Liaw, I have realised my problem isn't getting an unevaluated argument, my problem really is converting an unevaluted list to list of unevaluted elements. That is, how can I go from

substitute(list(a=x, b=c))


list(a=substitute(x), b=substitute(c))

(I am also interested in a general means of getting the "correct" unevaluated argument. ie, what should a be to always return list(x=1) for these functions:

b <- function(x) a(x)
c <- function(x) b(x)
d <- function(x) c(x)



Thanks, as always, for your help


R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Thu Feb 02 11:22:33 2006

This archive was generated by hypermail 2.1.8 : Thu 02 Feb 2006 - 10:44:14 GMT