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
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
+1 513 646 9390
What is the problem you are trying to solve?
More information about the R-help