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?
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
-
scottkosty
- 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!