On Wed, Sep 26, 2012 at 12:25 PM, Yihui Xie <x...@yihui.name> wrote: > The first place to look at is View-->View Messages, as described in > the troubleshooting section in Sweave manual (which applies to knitr > as well): https://github.com/downloads/yihui/lyx/sweave.pdf
Michael, You might also be interested in setting an error hook (a command that is run when an error occurs). Otherwise if your document exports fine you might not realize that there could be an error (knitr will print the error message to your latex document but it will appear to compile just fine). For example, knit_hooks$set(error = function(x, options) stop(x)) Scott