[R] Getting ... as an unevaluated list

2005-10-13 Thread hadley wickham
Hi, I'm trying to get ...as a list of unevaluated arguments, ie. substitute(list(...)) gives me an unevaluated list of the arguments, but I want a list of the unevaluated arguments. My attempts so far: (function(...) substitute(...))(a=1, b=a) # Only returns first (function(...)

Re: [R] Getting ... as an unevaluated list

2005-10-13 Thread Gabor Grothendieck
Try this: cl - as.list(match.call()) On 10/13/05, hadley wickham [EMAIL PROTECTED] wrote: Hi, I'm trying to get ...as a list of unevaluated arguments, ie. substitute(list(...)) gives me an unevaluated list of the arguments, but I want a list of the unevaluated arguments. My attempts so

Re: [R] Getting ... as an unevaluated list

2005-10-13 Thread Peter Dalgaard
Gabor Grothendieck [EMAIL PROTECTED] writes: Try this: cl - as.list(match.call()) or match.call(expand.dots=FALSE)$... On 10/13/05, hadley wickham [EMAIL PROTECTED] wrote: Hi, I'm trying to get ...as a list of unevaluated arguments, ie. substitute(list(...)) gives me an

Re: [R] Getting ... as an unevaluated list

2005-10-13 Thread hadley wickham
Perfect! Thanks Peter and Gabor. Hadley On 13 Oct 2005 19:59:49 +0200, Peter Dalgaard [EMAIL PROTECTED] wrote: Gabor Grothendieck [EMAIL PROTECTED] writes: Try this: cl - as.list(match.call()) or match.call(expand.dots=FALSE)$... On 10/13/05, hadley wickham [EMAIL PROTECTED]