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
project.org > [mailto:r-devel-boun...@r-project.org] On Behalf Of Joris Meys > Sent: Friday, October 01, 2010 9:01 AM > To: r-devel@r-project.org > Subject: [Rd] scoping goes wrong when some functions are used > within others. > > Dear, > > I'm following the r

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

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

2010-10-01 Thread Joris Meys
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 is as follows : ff <-