简体   繁体   中英

How to setup R with 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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM