You can tell knitr where to put the figures exactly, it does create a figure directory, but I do not have this issue either, when using knitr.
Latest version of everything? el On 2018-05-16 16:22 , Uwe Thuemmel wrote: > I realised that the problem appears when I am using the knitr module > (but not always). I now found a workaround which is to have an empty > master document which does not contain the knitr module — and which > then contains the actual document with the knitr module via \input. > > I still need to construct a simple example to make the error > reproducible. > > @Joel: I think I had also experienced the error in earlier LyX > versions. > > Best, Uwe [..