I tried to install the Knitr package in Lyx, but I ran into the following error.
"The knitr module requires a package that is not available in your Latex installation or a converter that you have not installed. Exiting latex may not be possible. Knitr> Latex."
I would really appreciate it if you could help me solve this problem. I checked the Lyx module, but could not pinpoint what to do. I am a new user of Lyx and Knitr.
Thank you in advance
This is often an indication of the PATH problem; see the first section of the LyX / Sweave / knitr manual (a link to the PDF is at http://yihui.name/knitr/demo/lyx/ )
Ahem... Windows 10, MikTeX, , R x64 i386, R.home('bin') R, :
"C:/Users/DIEGOA~1.ACO/DOCUME~1/R/R-34~1.2/bin/i386" i386 "C:/Users/DIEGOA~1.ACO/DOCUME~1/R/R-34~1.2/bin/x64" x64... Rnw (knitr) LyX ( , )...
, ...
I had the same error message on my Windows 10 computer, and I found that the error was in the path that I specified for R. If you do not have a path to the R executable, it will not work. Change the path in Lyx with Tools> Preferences> Paths and edit the contents of the PATH prefix. I had to add
C:\Program Files\R\R-3.6.0\bin\x64