Re: [R] How to move an internal function to external keeping same environment?

2010-11-15 Thread Gabor Grothendieck
On Mon, Nov 15, 2010 at 7:48 AM, Matthieu Stigler matthieu.stig...@gmail.com wrote: Hi I have within a quite big function foo1, an internal function foo2. Now, in order to have a cleaner code, I wish to have the internal foo2 as external. This foo2 was using arguments within the foo1

Re: [R] How to move an internal function to external keeping same environment?

2010-11-15 Thread Duncan Murdoch
On 15/11/2010 7:48 AM, Matthieu Stigler wrote: Hi I have within a quite big function foo1, an internal function foo2. Now, in order to have a cleaner code, I wish to have the internal foo2 as external. This foo2 was using arguments within the foo1 environment that were not declared as inputs of

Re: [R] How to move an internal function to external keeping same environment?

2010-11-15 Thread Matthieu Stigler
Le 15. 11. 10 14:14, Duncan Murdoch a écrit : On 15/11/2010 7:48 AM, Matthieu Stigler wrote: Hi I have within a quite big function foo1, an internal function foo2. Now, in order to have a cleaner code, I wish to have the internal foo2 as external. This foo2 was using arguments within the foo1

Re: [R] How to move an internal function to external keeping same environment?

2010-11-15 Thread Gabor Grothendieck
On Mon, Nov 15, 2010 at 10:49 AM, Matthieu Stigler matthieu.stig...@gmail.com wrote: I have limited understanding of Duncan's points but will follow your advice not to do it like this. If I am nervertheless quit keen to use foo2 externally, is the use of either assign() in foo1, or mget() in