yihui / knitr-examples

A collection of knitr examples
488 stars 586 forks source link

Writing up a knitr document in windows but opening up in linux #62

Open rpatel22 opened 6 years ago

rpatel22 commented 6 years ago

Hi

I have recently typed up a knitr document in Lyx on windows 10. The knitr functions are working perfectly fine and all the chucks evaluated fine in the PDF on Windows.

I then saved all my work and copied the directory to my linux (Ubuntu) laptop which also has lyx installed with knitr enabled. However when I tried reproduce the pdf file on Lyx in ubuntu it gave me this error image

I was wondering, why is happening. I have tested knitr on a new file created in Lyx on ubuntu and it works fine, evaluates the chunks, no issues at all.

I like to simultaneously be able to work on windows/ubuntu, hence I find it useful if I have continue to edit and reproduce knitr documents on both using Lyx.

Thanks Rahul