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
Regards, Yihui -- Yihui Xie <[email protected]> Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa State University 2215 Snedecor Hall, Ames, IA On Wed, Sep 26, 2012 at 10:16 AM, Michael Bach <[email protected]> wrote: > Hi Scott, > > Thanks for responses. > >> Look in the terminal output. It might give you the error. >> > > I cannot find a terminal output view in LyX - checked all toolbars and View > menu. > >> You could alternatively do File > Export > R/S code and then run/debug >> the resulting file in R. >> > > I tried this and after checking each line interactively in the R console and > commenting out some things in LyX files, e.g. packages that are not available > in > R2.15.1, it runs through, but the LyX called Rscript does not. > >> Also note that since version 0.7 : >> >> - when `opts_knit$get('verbose')` is TRUE, logs (messages, warnings and >> errors) along with the corresponding R code will be printed after `knit()` >> is done; this might help users figure out possible problems in R code >> quickly (#276) >> > > This is a good hint, I set it with: > opts_knit$set(verbose = TRUE) > > inside the first code chunk, but I assume this prints to the R console if > knit() > is called interactively, doesn't it? Anyway, I do not get any feedback on > where > the error comes from > > Michael > > > >
