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?
Tools->Reconfigure
? Normally Linux users do not need to worry aboutPATH
problems. Also check ifRscript --version
works in the terminal. – Yihui XieR scripting front-end version 3.0.1 (2013-05-16)
. The 'rest' of the system seesknitr
, seemingly fine. – ako~./lyx
and lo and behold!!!! I can now seeRNW (knitr)
. I had an installation of Lyx pre-2.0.6 from a year ago or so, so something in the user dir may have compromised the search path. Can't say what or why. You want to post as a response? – ako