inject source of error in knitr. closes #175
Merge branch 'bugfix-issue-175' into develop