From 6b8caa232e2c1fa226769fb4afa1408f6fa17db2 Mon Sep 17 00:00:00 2001 From: Yihui Xie Date: Sun, 8 Apr 2012 18:54:23 -0500 Subject: [PATCH] only list md files --- knit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/knit b/knit index fb2294a..6175fdd 100755 --- a/knit +++ b/knit @@ -43,7 +43,7 @@ local({ } # knit all md files under ./source - for (f in list.files('./source/', full.names = TRUE)) { + for (f in list.files('./source/', '\\.md$', full.names = TRUE)) { unlink(basename(f)) knit(f, output = basename(f)) # make sure you do not do stupid things (edit output instead of source)