Skip to content
Prev 157267 / 398506 Next

include scripts into main file (the LaTeX way)

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 seen a search implementation for source(), but R's package 
mechanism makes it much less necessary.
On Fri, 26 Sep 2008, Michael Schulte wrote:

            
Whereas in R you have functions and packages to encapsulate useful pieces 
of code.