knitr for weaving