Skip to content

Commit

Permalink
time each command
Browse files Browse the repository at this point in the history
  • Loading branch information
Kirill Müller committed Oct 31, 2013
1 parent 117b776 commit e8c9252
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion k
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
echo "$0" "$*" >> /dev/stderr

prefix=${1%.*}-
Rscript -e "library(knitr)"\
time Rscript -e "library(knitr)"\
-e "opts_knit\$set(base.url='http://animation.r-forge.r-project.org/knitr-ex/')"\
-e "opts_chunk\$set(cache.path='cache/$prefix', fig.path='figure/$prefix')"\
-e "set.seed(123); knit('$1', quiet = TRUE)"
Expand Down
2 changes: 1 addition & 1 deletion knitall
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

ls | grep -E '^[0-9].*\.(brew|R(nw|md|tex|html|rst|asciidoc|textile))$' | grep -E -v '^(076|078)-' | xargs -n1 -P4 ./k > /dev/null
Rscript -e "knitr::purl('094-purl.Rmd')"
time Rscript -e "knitr::purl('094-purl.Rmd')"
./k "076-chinese-gb2312.rnw', '076-chinese-gb2312.TEX', encoding='GB2312"
./k "078-chinese-big5.rnw', '078-chinese-big5.ctx', encoding='BIG5"
# Explicitly run caching test twice
Expand Down

0 comments on commit e8c9252

Please sign in to comment.