On 14 Nov 2008, at 14:50, Philippe Grosjean wrote:
mikeandkatedunbar wrote:
I am trying to get up and running with Lyx and R, using Sweave
I have achieved this on my Windows XP PC at work with MikTex. Great.
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
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. ....”
This does not appear to be a problem with Sweave.sty (at least, not
directly). It is your literate-article.layout which cannot be
found, is corrupted, or is incompatible with the new LyX 1.6
version. Have you tried with LyX 1.5.7?
It seems like Lyx cannot find Sweave.sty, event though Latex can
find it.
I'm at my wits end, so any advice on how to troubleshoot this
would be very much appreciated. While I'm quite familiar with R,
Lyx is very new to me.
Regards
Mike
Best,
Philippe Grosjean
YES, I installed LyX 1.5.7, copied the layouts across and it works
fine. Thanks so much. I guess there could be a problem with Lyx 1.6.0
and the Lyx customisation files from Gregor Gorjanc, at least on OS X
- I didn't have the problems with 1.6.0 on Windows.
regards
Mike