for (i in list.files(pattern=".*\\.R$")) source(i) On 10/15/07, subura <[EMAIL PROTECTED]> wrote: > > Care to explain how i can use a wildcard expression to "source" all files > ending with .R in a subdirectory ? I've tried something like this > 'source(glob2rx("*.R"))' without success. > > Thank you > -- > View this message in context: > http://www.nabble.com/Wildcards-tf4627981.html#a13214214 > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > 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. >
-- Jim Holtman Cincinnati, OH +1 513 646 9390 What is the problem you are trying to solve? ______________________________________________ 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.