From h.wickham at gmail.com  Thu Feb  2 01:16:11 2006
From: h.wickham at gmail.com (hadley wickham)
Date: Wed, 1 Feb 2006 18:16:11 -0600
Subject: [Rd] Converting an unevaluted list to list of unevaluted elements
Message-ID: <f8e6ff050602011616k412fdba6r77082ee4d463ccd3@mail.gmail.com>

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))

to

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)

a(list(x=1))
b(list(x=1))
c(list(x=1))
d(list(x=1))
)

Thanks, as always, for your help

Hadley



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