library("R.utils");
sourceDirectory("C:/appropriatepath/R/", modifiedOnly=TRUE);
On Tue, Jun 9, 2009 at 8:09 PM, spencerg wrote:
> Sundar Dorai-Raj taught me to do the following:
>
> Rdir <- "c:\appropriatepath\R"
>
> Rfiles <- dir(Rdir, pattern='\\.R$', full.names=TRUE)
>
>
Sundar Dorai-Raj taught me to do the following:
Rdir <- "c:\appropriatepath\R"
Rfiles <- dir(Rdir, pattern='\\.R$', full.names=TRUE)
invisible(lapply(aTR, source))
The "invisible" suppresses the garbage while still displaying
error messages.
H
Hi,
I always use source for this kinds of things. If you have a lot of code,
you could consider wrapping it into an R-package. This would allow you
to load all the code by using the library(myPackage) command. But this
might be unnecessary for your situation.
cheers,
Paul
Jason Rupert wrote
3 matches
Mail list logo