[R] Wildcards

jim holtman jholtman at gmail.com
Mon Oct 15 21:18:36 CEST 2007


for (i in list.files(pattern=".*\\.R$")) source(i)

On 10/15/07, subura <subura at genetrix.se> 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 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 you are trying to solve?



More information about the R-help mailing list