Re: [R] Lengthy delay in sourcing a large function

2008-06-02 Thread Gregory. R. Warnes
For such a large chunk of code, you might profit greatly from constructing an R package containing your functions. This will avoid the need to parse in the entire set every time, since the functions will be "pre-parsed" during the package installation. -G On Jun 2, 2008, at 5:45PM , Dunca

Re: [R] Lengthy delay in sourcing a large function

2008-06-02 Thread Duncan Murdoch
On 02/06/2008 5:28 PM, Dennis Fisher wrote: Colleagues, I have a script that contains ~ 10,000 lines of code. Most of it is written as small functions. However, for various reasons, the final function is ~1500 lines of code. I realize that this may not be optimal but the code evolved th

[R] Lengthy delay in sourcing a large function

2008-06-02 Thread Dennis Fisher
Colleagues, I have a script that contains ~ 10,000 lines of code. Most of it is written as small functions. However, for various reasons, the final function is ~1500 lines of code. I realize that this may not be optimal but the code evolved that way and breaking it into smaller pieces i