LyX ⇒ knitr doesn't work?
knitr doesn't work?
I have installed knitr in RSturio with no problem (at least, it says it was sucessfully installed and saved in a downloaded_packages folder).
However, when I open up an example file I was given, that contains "chunks" from R, and I try to view the PDF, I get an error message:
Cannot Convert file:
An error occured while running
RScript--verbose--no-save--no-restore"C:/Program Files(x86/LyX 2.0/Resources/scripts/lyxknitr.R"
"C:/USers/myname/AppData/Local/Temp/lyx_tmpdir.p23208/lyx_tmpbuf3/"name of file".....
How can I fix this? I haven't had much luck researching the net for an answer.
EDIT: I installed again the knitr packages in RStudio and the file started working again. I added some tables and I could generate the file.
However, suddenly, after I added a few more tables and graphs, I got the error again. No idea why.
I went to check the modules again and now I couldn't select neither Sweeve nor knitr.
Please help me, I cannot understand why this is happening!! Why are things suddenly getting broken in my lyx?
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
-
- Site Moderator
- Posts: 542
- Joined: Sat Sep 01, 2012 6:38 am
Re: knitr doesn't work?
Consider trying LyX 2.1.1 which will be released soon.
I hope the problems get figured out or go away for you!