Hello everyone,

This message is mainly intended to LyX developers. A paper [1] by
Gregor Gorjanc and due to appear in the near future on Rnews [2]
describes into great detail all the steps needed to customize LyX so
that it integrate nicely with Sweave [3] for creating reports using R.

I wanted to bring up to your attention that LyX is well suited for
creating R [4] reports using Sweave. Provided that several "minor"
customisations are applied to the base LyX distribution, LyX could
become the preferred GUI tool for R users creating LaTeX reports.

>From the article:
Described customisation is not a difficult task (just 6
steps), but it would be desirable if LYX could support
Sweave "out of the box". LYX has a convenient feature
of configuration that is conditional on availability
of various third party programs and LATEX files.
The Sweave support for editing could be configured
if 'Sweave.sty' is found, while R would have to be
available for conversions. To achieve this, only minor
changes would be needed in the LYX source. I think
that the easiest way would be to add another argument,
say -ns, to the tex2lyx converter that would
drive the conversion of the Sweave file to LYX as it is
done for noweb files, except that the Sweave-specific
layout of files would be chosen. Additionally, the format
name would have to be changed from literate
to avoid collision with noweb. Unfortunately, I do not
have the skills to work with C++ language for these
changes.

It would be nice if the LyX developers considered to apply these minor
modifications to some future version (say, 1.6.0). It would
effectively facilitate the task of creating R reports using LyX.

[1] http://gregor.gorjanc.googlepages.com/lyx-sweave
[2] http://cran.r-project.org/doc/Rnews/
[3] http://stat.ethz.ch/R-manual/R-patched/library/utils/html/Sweave.html
[4] http://cran.r-project.org/

Regards,
Liviu

Reply via email to