Re: [Rd] scoping goes wrong when some functions are used within others.

2010-10-01 Thread Joris Meys
Thank you for all your answers, this really helped me out. I've been digging into scoping rules in R and although I'm going to need quite some more studying to fully grasp it, I do see where the errors come from. Thanks again. @Erik : I know that some_value was not declared. I just gave some pseu

Re: [Rd] scoping goes wrong when some functions are used within others.

2010-10-01 Thread William Dunlap
One of the complaints in your stackoverlow references concerned doBy::transformBy and the error message came from eval(). Using eval() means you are throwing the usual scoping rules out the window and making up some new ones. Using a non-core package means you are at the mercy of its writer. In

Re: [Rd] scoping goes wrong when some functions are used within others.

2010-10-01 Thread Duncan Murdoch
On 01/10/2010 12:00 PM, Joris Meys wrote: Dear, I'm following the r tag on stackoverflow.com, and couldn't but notice there are quite some questions popping up that deal with scoping in relation to custom functions. I grinded my teeth on it already, and I have absolutely no clue what goes wrong

Re: [Rd] scoping goes wrong when some functions are used within others.

2010-10-01 Thread Erik Iverson
Joris Meys wrote: Dear, I'm following the r tag on stackoverflow.com, and couldn't but notice there are quite some questions popping up that deal with scoping in relation to custom functions. I grinded my teeth on it already, and I have absolutely no clue what goes wrong. The general pattern i