I found the error source, but have no clue for a fix yet. The resulting .tex document after a LyX-caused knit() is cut off exactly at the first occurrence of a German diacritic o, i.e. the character รถ. This is also in line with the fact that the knitr-minimal example runs fine since it is written in English...

As I wrote earlier, a manual knit() from an R session on the .Rnw file succeeds. So I guess there is something wrong with the UTF-8 part in the Rscript call by the knitr(Rnw) module(?).

For reference:

> 12:13:14.353: Rscript --verbose --no-save --no-restore
> "/Applications/LyX.app/Contents/Resources/scripts/lyxknitr.R"
> "/var/folders/yx/tvnzczfx7c31c68jrddvlqgr0000gn/T/lyx_tmpdir.xJL523/lyx_tmpbuf3/""skryptum.Rnw" > "/var/folders/yx/tvnzczfx7c31c68jrddvlqgr0000gn/T/lyx_tmpdir.xJL523/lyx_tmpbuf3/""....tex"
> UTF-8 "/Users/XYZ/Documents/......."

R and Terminal locale are set correctly as mentioned in a previous post.

@Yihui:

Do you remember any similar issues when updating knitr.module and lyxknitr.R?

@Scott:

I will try your attached files if that could help now as the error is obvious.

Michael

Reply via email to