Re: [R] include scripts into main file (the LaTeX way)

2008-09-26 Thread Michael Schulte
source() does the trick thanks to you all! m baptiste auguie wrote: you mean like ?source ? On 26 Sep 2008, at 13:49, Michael Schulte wrote: Dear R-people, I want to use an idea from LaTeX in the work flow with R. It is possible in LaTeX to have a main file from which other files are called

Re: [R] include scripts into main file (the LaTeX way)

2008-09-26 Thread Prof Brian Ripley
This is hardly original to LaTeX (in fact even TeX has a way), and most programming languages have such a mechanism (e.g. #include in C). R's nearest equivalent is source(), but that does not have a mechanism like TEXINPUTS to search for files (but then neither does MikTeX). I believe I have

Re: [R] include scripts into main file (the LaTeX way)

2008-09-26 Thread baptiste auguie
you mean like ?source ? On 26 Sep 2008, at 13:49, Michael Schulte wrote: Dear R-people, I want to use an idea from LaTeX in the work flow with R. It is possible in LaTeX to have a main file from which other files are called (ie included). So for example if you have book, the main index file

Re: [R] include scripts into main file (the LaTeX way)

2008-09-26 Thread Marianne Promberger
Hi, On Friday, 26 September 2008, 14:49 (UTC+0200), Michael Schulte wrote: [...] > So for example if you have book, the main index file would call each > chapter separately. > > Is there something comparable in R that follows the above 'include' idea > from LaTeX? I've used source() for that.

Re: [R] include scripts into main file (the LaTeX way)

2008-09-26 Thread Gábor Csárdi
Perhaps ?source. Gabor On Fri, Sep 26, 2008 at 2:49 PM, Michael Schulte <[EMAIL PROTECTED]> wrote: > Dear R-people, > > I want to use an idea from LaTeX in the work flow with R. > It is possible in LaTeX to have a main file from which other files are > called (ie included). > So for example if yo

[R] include scripts into main file (the LaTeX way)

2008-09-26 Thread Michael Schulte
Dear R-people, I want to use an idea from LaTeX in the work flow with R. It is possible in LaTeX to have a main file from which other files are called (ie included). So for example if you have book, the main index file would call each chapter separately. Is there something comparable in R tha