extract r error message from knitr stderr