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

2009-12-26 Thread Wensui Liu
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@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

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

2009-12-26 Thread David Winsemius
On Dec 26, 2009, at 3:10 PM, Wensui Liu wrote: i am just wondering if there is an effective way to include other external codes into the program. ?source -- David Winsemius, MD Heritage Laboratories West Hartford, CT __ R-help@r-project.org

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

2009-12-26 Thread Jim Holtman
?source What is the problem you are trying to solve? Sent from my iPhone. On Dec 26, 2009, at 15:10, Wensui Liu liuwen...@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]]

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

2009-12-26 Thread Gabor Grothendieck
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 liuwen...@gmail.com wrote: i

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

2009-12-26 Thread Wensui Liu
thanks, all, i think source() is the right one i am looking for. On Sat, Dec 26, 2009 at 3:13 PM, David Winsemius dwinsem...@comcast.netwrote: On Dec 26, 2009, at 3:10 PM, Wensui Liu wrote: i am just wondering if there is an effective way to include other external codes into the program.