Re: [Rd] anyway to get R unevaluated expr independent on arguments

2011-04-07 Thread Zheng, Xin (NIH) [C]
Thank you very much. I learned a lot. Regards, Xin -Original Message- From: Simon Urbanek [mailto:simon.urba...@r-project.org] Sent: Thursday, April 07, 2011 5:42 PM To: Zheng, Xin (NIH) [C] Cc: r-devel@r-project.org Subject: Re: [Rd] anyway to get R unevaluated expr independent on

Re: [Rd] anyway to get R unevaluated expr independent on arguments

2011-04-07 Thread Simon Urbanek
On Apr 7, 2011, at 5:18 PM, Zheng, Xin (NIH) [C] wrote: > Hi there, > > Suppose the cmd is "a<-3", I can parse the cmd sexp with R_ParseVector and > eval it. My question is - is it possible to parse a cmd like "a <- ?", > afterwards evaluation will give corresponding result depend on different

[Rd] anyway to get R unevaluated expr independent on arguments

2011-04-07 Thread Zheng, Xin (NIH) [C]
Hi there, Suppose the cmd is "a<-3", I can parse the cmd sexp with R_ParseVector and eval it. My question is - is it possible to parse a cmd like "a <- ?", afterwards evaluation will give corresponding result depend on different argument? In other words, '?' is just a placeholder. Thanks. Xin