Hello R-Helpers, I have a directory with some ".R" files that I execute every day. I want to write a script that executes each one of time sequentially. Is there a statement for this? Thank you.
?source On Tue, Nov 23, 2010 at 10:04 AM, Santosh Srinivas <santosh.srinivas at gmail.com> wrote:> Hello R-Helpers, > > I have a directory with some ".R" files that I execute every day. > I want to write a script that executes each one of time sequentially. > > Is there a statement for this? > > Thank you. > > ______________________________________________ > 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. >-- Jim Holtman Cincinnati, OH +1 513 646 9390 What is the problem that you are trying to solve?
See R.utils package and sourceDirectory(), e.g.
sourceDirectory("R/");
You can also specify that you only want to reload files that have been
modified, e.g.
sourceDirectory("R/", modifiedOnly=TRUE);
/Henrik
On Tue, Nov 23, 2010 at 7:04 AM, Santosh Srinivas
<santosh.srinivas at gmail.com> wrote:> Hello R-Helpers,
>
> I have a directory with some ".R" files that I execute every day.
> I want to write a script that executes each one of time sequentially.
>
> Is there a statement for this?
>
> Thank you.
>
> ______________________________________________
> 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.
>