work around yihui/knitr#645