mikeandkatedunbar wrote:
I am trying to get up and running with Lyx and R, using Sweave

I have not tried that before, nevertheless ...

I have achieved this on my Windows XP PC at work with MikTex. Great.

Also using LyX 1.6 ?

HOWEVER On my Mac (OSX 10.4.7 with MacTex 2008 installed) I have come up against a “brick wall”

Lyx 1.6 is installed and I can generate dvi files from simple example .lyx files

R 2.8 is installed, I am up to the stage where R CMD Sweave foo.Rnw works, as does Latex foo.tex

kpsewhich Sweave.sty confirms that Latex can find Sweave.sty

Then also LyX should find it.

I have followed the instructions in
http://cran.r-project.org/contrib/extra/lyx/INSTALL
and copied files to the relevant locations into
\users\me\Library\Application Support\Lyx-1.6
And reconfigured / restarted Lyx

But whenever I open a test file such as
http://cran.r-project.org/contrib/extra/lyx/Sweave-test-1.lyx

I get the same old message
“The layout file requested by this document, literate-article.layout, is not usable. This is probably because a LaTeX class or style file required by it is not available. ....”

Have you tried with LyX 1.5.7?
(You can install both versions in parallel, and they will have separate user directories.) Maybe it is that the layout-files don't work in 1.6.

But just guessing ...
/Konrad

Reply via email to