Le 02/07/2015 23:25, Rich Shepard a écrit :
   1.) When the document refers to the 'Chunk' environment I assume that's
the LyX-code in the menu and is different from Insert -> TeX code (C-l
on my
system) which inserts the infamous ERT box. As a test, I opened a LaTeX
box and
inserted
     > str(b.cast)

In 2.1.x, you can use the Chunk custom inset instead of ERT; it handles transparently the <<>>=...@ syntax.

In any case, using LyX-Code is never a good idea.

The Sweave manual shall definitely be updated to cover the new state of things.

   2.) If the document suffix is supposed to be .Rnw rather than .lyx,
how do
I open the .Rnw version in LyX since the menu allows only files with the
.lyx suffix?

The document suffix is .lyx. When you want to preview, LyX outputs a .Rnw file, runs sweave on it, which creates a .tex file and finally runs LaTeX. This is all completely transparent.

Please try again, and give us the error messages that you get, if any.

JMarc

Reply via email to