LyX-Sweave on Ubuntu (Karmic)

Bret Collier sends the following install instructions for LyX-Sweave combination that worked for him on his Ubuntu (Karmic) setup.

Nothing was wrong with your instructions at http://www.bioconductor.org/CRAN/contrib/extra/lyx under install from what I can tell (other than where I put noweb.sty).

Here are the install steps I used (which basically follow the ones you provide on CRAN but I tried to list exactly what I did) to install Lyx 1.6.4 on my Linux Ubuntu Karmic Dual Core 32bit laptop with R v2.10.1 (2009-12-14). Note there are some minor differences with my install routine and what I found at- http://blog.nextbiomotif.com/2009/10/primer-to-sweave-with-lyx.html. Location of Sweave.sty is different.

1: I used Synaptic package manager to install Lyx and LaTex (tex-live). I updated R using sudo apt-get install and sudo apt-get install r-base before anything else.

2. Find the so-called LyX user directory or LyX library directory via the Help -> About LyX menu within LyX (mine was /usr/share/lyx/)

3. Save the 'preferences' file from CRAN (I saved unedited) into- /usr/share/lyx/

4. I saved all the literate-*.* files from CRAN to the layouts sub-directory of the Lyx user directory- /usr/share/lyx/layouts/

5. I put noweb.sty into- /usr/share/texmf/tex/latex/

6. I put Sweave.sty into- /usr/share/texmf/

7. I put any other .sty into- /usr/share/texmf/tex/latex/

8. I used texhash (or sudo texhash) to make sure all the .sty are located.

9. I made sure R was in the path (opened Terminal and typed in "R")

10. I used sudo lyx to open Lyx, then I went Tools->Reconfigure, got the reconfigure successful window, then I closed Lyx

11: Then I opened Lyx and everything was working on the Lyx end.


R AnalyticFlow

R AnalyticFlow seems to be a nice tool to have a good overview over the analysis. The same kind of mode is available in Orange and SAS Enterprise Guide. I have not tried it yet, though. Does anyone have any experiences with it?

Update on 2010-07-31: there is also Red-R, which is a "sort of mixture" of R and Orange.