Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to setup R with LyX?

Tags:

r

lyx

I wish to setup R with LyX. Going through the web I found many resources.

The "official" text doesn't seem to be the most up to date: http://wiki.lyx.org/LyX/LyxWithRThroughSweave

I followed most of the steps here: http://wiki.lyx.org/uploads/LaTeX/SweaveR/lyx_with_r_and_sweave_instructions.pdf But was it really needed? Or is LyX 2.x makes some of them obsolete? From reading this post: http://yihui.name/en/2011/05/sweave-and-pgfsweave-in-lyx-2-0-x-experimental/ I was not so sure anymore.

So my question is - what is the most up to date explanation on how to set up and use LyX with R?

Also - what editor do you find it useful to work with in combination with LyX?

Thanks.

like image 931
Tal Galili Avatar asked Sep 18 '11 20:09

Tal Galili


1 Answers

I use LyX 2.0 with Sweave and pgfSweave on a daily basis. LyX 2.0 comes loaded with a module called Sweave which immediately allows you to use Sweave in your documents. If you plan to use pgfSweave, you need to (a) download the pgfSweave module and (b) install some converters. Details are available in the third link you indicated.

Hope this helps.

like image 79
Ramnath Avatar answered Oct 06 '22 23:10

Ramnath