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

Michael Schulte michael.schulte at uib.no
Fri Sep 26 15:39:00 CEST 2008


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 (ie included).
>> 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?
>> A main file that calls parts of an analysis or data preparation 
>> separately.
>>
>> Thanks!
>> Michael
>>
>> ______________________________________________
>> R-help at r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide 
>> http://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.
>



More information about the R-help mailing list