Lyx cannot find knitr module

这一生的挚爱 提交于 2019-12-11 02:36:16

问题


I am migrating/branching from sweave to knitr and can run @yihui's minimal example in Rstudio but am having trouble making it run with Lyx (2.06). I get the message The module knitr has been requested by this document but has not been found in the list of available modules.

My PATH is /usr/bin/Rscript (per which Rscript, as per @yihui's suggestion here) so that appears visible, but lyx doesn't seem to see it.

I also did upgrade to R version 3.0.1 (Good Sport) today as a part of a larger system upgrade (Mint 13 to Mint 15), thus coinciding with when I started using Lyx so there may be other stuff going on at the same time. I do assume that R 2.15 and 3.0.1 have the same PATH (as noted, currently /usr/bin/Rscript) and that Rstudio and Lyx are not looking for different installations?


回答1:


Exit LyX, remove (back-up if desired) ~/.lyx, and start LyX.



来源:https://stackoverflow.com/questions/16707907/lyx-cannot-find-knitr-module

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!