Knitr + LyX2.0.5.1: PDF generation fails

With LyX2.0.5.1 I have an error while generating pdf.

1st file: aab.lyx.
LyX Error:

File ended while scanning use of \title. <*> aab.tex *** (job aborted, no legal \end found) 

A temporary aab.Rnw file is created. With Rstudio, I can open it and compile pdf.
The aab.tex file stops with \ title {A

Title - "Aïkido Aviron Bayonnais".

2nd file: bp.lyx.
LyX popup:

  Une erreur s'est produite lors de l'exécution : Rscript --verbose --no-save --no-restore "/Applications/LyX.app/Contents/Resources/scripts/lyxknitr.R" "/Users/alainbret/tmp/lyx /lyx_tmpdir.EWu435/lyx_tmpbuf2/""bp.Rnw" "/Users/alainbret/tmp/lyx/lyx_tmpdir.EWu435/lyx_tmpbuf2/""bp.tex" UTF-8 "/Users/alainbret/Git/test/BloodPressure/scripts/". 

Temporary bp.Rnw and bp.tex files are correctly created.
With Rstudio, I can create a pdf file.

Files are correctly executed using LyX2.0.4, R3.0.0.0, and the dev version of knitr.

Thanks in advance for your help.

+4
source share
1 answer

You may receive two LyX errors: # 8504 and # 8537 . Both bugs were fixed in the LyX development version, and the next release (2.0.6) may take one month.

You can fix # 8504 yourself by following the instructions in the Other Languages ​​section of this page . But you can't do anything about # 8537 unless you compile LyX from the source. In any case, please try to fix the first problem and see if it helps.

By the way, although this may not matter, the current release of LyX 2.0.5.1. You can update it.

+2
source

All Articles