Skip to content

Commit

Permalink
only list md files
Browse files Browse the repository at this point in the history
  • Loading branch information
yihui committed Apr 8, 2012
1 parent 9661a5f commit 6b8caa2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion knit
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6b8caa2

Please sign in to comment.