Re: [R] how to split and handle a big R program into multiple files

2009-04-23 Thread jgarcia
source() and the use of functions ... Javier --- I am working on a program totally written in R which is now getting bigger and bigger so that editling the only file that contains all the functions is becoming more and more unmanageable. I wonder whether it is possible to spread the R code,

Re: [R] how to split and handle a big R program into multiple files

2009-04-23 Thread baptiste auguie
If most of the functions are quite stable (you don't change them too often), you could also consider creating a R package with package.skeleton. baptiste On 23 Apr 2009, at 10:39, jgar...@ija.csic.es wrote: source() and the use of functions ... Javier --- I am working on a program

[R] R: how to split and handle a big R program into multiple files

2009-04-23 Thread mauede
Is that an R command ? I browswd for the on-line hlp about such a command but could not find it. Thank you. maura -Messaggio originale- Da: baptiste auguie [mailto:ba...@exeter.ac.uk] Inviato: gio 23/04/2009 11.48 A: mau...@alice.it Cc: r-help Help Oggetto: Re: [R] how to split and

[R] R: how to split and handle a big R program into multiple files

2009-04-23 Thread mauede
It looks like I can store each function in a different file and have main file containing the include-like directiives and the main instructions. Something like: source(Program_Global_Constants.R) source(Program_Global_Variables.R) source(Program_Fun1.R) source(Program_Fun2.R)

Re: [R] R: how to split and handle a big R program into multiple files

2009-04-23 Thread baptiste auguie
It is an R command (package utils), see ?package.skeleton baptiste On 23 Apr 2009, at 10:51, mau...@alice.it wrote: Is that an R command ? I browswd for the on-line hlp about such a command but could not find it. Thank you. maura -Messaggio originale- Da: baptiste auguie

[R] how to split and handle a big R program into multiple files

2009-04-23 Thread mauede
I am working on a program totally written in R which is now getting bigger and bigger so that editling the only file that contains all the functions is becoming more and more unmanageable. I wonder whether it is possible to spread the R code, making up the same program, in a number of smaller

[R] R: R: how to split and handle a big R program into multiple files

2009-04-23 Thread mauede
I read the on-line documentation. What I am still missing is how I run my program after encapsulating it in a package. I will have to load the package ... just guessing Thank you maura -Messaggio originale- Da: baptiste auguie [mailto:ba...@exeter.ac.uk] Inviato: gio 23/04/2009 12.17 A:

Re: [R] R: R: how to split and handle a big R program into multiple files

2009-04-23 Thread Duncan Murdoch
On 4/23/2009 7:15 AM, mau...@alice.it wrote: I read the on-line documentation. What I am still missing is how I run my program after encapsulating it in a package. I will have to load the package ... just guessing If I had a large program that I needed to run just once, e.g. an analysis or

[R] R: R: R: how to split and handle a big R program into multiple files

2009-04-23 Thread mauede
Submitting to CRAN is one of my goals. What we are implementing is not done yet either in R or MatLab. There exists some Fortran applications of the algorithms we are implementing for general use. it'll still take me some time before I get there. Maura -Messaggio originale- Da:

Re: [R] R: R: R: how to split and handle a big R program into multiple files

2009-04-23 Thread baptiste auguie
May I suggest you join R-forge when your package has taken shape? It'll allow you to easily check the building of the package on all platforms and you'll be able to submit to CRAN in one click when it's good enough. baptiste On 23 Apr 2009, at 13:58, mau...@alice.it wrote: Submitting to