[R] something similar to %include() in sas?

Gabor Grothendieck ggrothendieck at gmail.com
Sat Dec 26 21:15:18 CET 2009


source("abc.R") if you want to run the code in the abc.R file at that
point.  Or if you are looking for a macro facility see defmacro in
gtools which is based on Thomas Lumley's R News 1/3 article where
defmacro is presented.

On Sat, Dec 26, 2009 at 3:10 PM, Wensui Liu <liuwensui at gmail.com> wrote:
> i am just wondering if there is an effective way to include other external
> codes into the program.
>
> thanks.
>
>        [[alternative HTML version deleted]]
>
> ______________________________________________
> 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