Re: [R] Using variables from different environments in one function

2012-10-05 Thread Duncan Murdoch
On 12-10-05 3:47 PM, Rik Verdonck wrote: Dear R-community, I have been experiencing this issue with functions within a function and I can kind of feel where the problem is (environments, closures etc), but I don't manage to solve it. I will sketch it with an example: #We have two simple "inne

Re: [R] Using variables from different environments in one function

2012-10-05 Thread Ista Zahn
Hi Rik, I don't fully understand it, but setting local=TRUE to your source() calls will avoid the specific error you noted. Best, Ista On Fri, Oct 5, 2012 at 3:47 PM, Rik Verdonck wrote: > Dear R-community, > > > I have been experiencing this issue with functions within a function and > I can k