Re: [R] something similar to %include() in sas?
thanks, all, i think source() is the right one i am looking for. On Sat, Dec 26, 2009 at 3:13 PM, David Winsemius wrote: > > 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 > > -- == WenSui Liu Blog : statcompute.spaces.live.com Tough Times Never Last. But Tough People Do. - Robert Schuller == [[alternative HTML version deleted]] __ R-help@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.
Re: [R] something similar to %include() in sas?
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 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@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. > __ R-help@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.
Re: [R] something similar to %include() in sas?
?source What is the problem you are trying to solve? Sent from my iPhone. On Dec 26, 2009, at 15:10, Wensui Liu 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@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. __ R-help@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.
Re: [R] something similar to %include() in sas?
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 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.
[R] something similar to %include() in sas?
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 the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.