On 21/08/2011 2:06 AM, Graham Smith wrote:
Further to this,  I have now created a small file from scratch with a single
chunk of R code and it seems to work fine. article class and Sweave module
loaded.

I have attached the file that is giving me the problems and just in case it
as been missed, this file was produced in Lyx 2.0 in Ubuntu 11.04.  It was
the Mac that had 1.6 on it, which I upgraded to 2.0 before trying to open
this file.

Thanks,

Graham



On 21 August 2011 06:48, Graham Smith<[email protected]>  wrote:

Liviu,

Thanks for the reply.

I'm afraid I don't understand what you are asking me to try.

As the doc has already worked with SWeave, the modules SWeave and Noweb are
loaded automatically, which is why I assume I am getting the error as soon
as I open the document the lyx. And again the article class is chosen as
that is what class of the document I am loading.

So I don't reall know what it is you want me to try, sorry.

Also when you ask for a small Lyx Sweave file, I haven't reached the stage
of trying to compile the document because of the error messages.

However, I have just tried to complile it and get an error.

"An error occurred while running:

Rscript --verbose --no-save --no-restore

"/Applications/LyX.app/Contents/Resources/scripts/lyxsweave.R"


"/var/folders/NZ/NZHrfNFJED4D2lK1ptzXHE+++TI/-Tmp-/lyx_tmpdir.L11776/lyx_tmp..."



I have now searced all the latex packages installed and uninstalled and
cannot find one called literate, so I am even more confused :-(


On 20 August 2011 22:23, Liviu Andronic<[email protected]>  wrote:

On Sat, Aug 20, 2011 at 10:29 PM, Graham Smith<[email protected]>
wrote:
Just to add to this, I have updated to Mactex 2011, and found the the
Tex
live utlity, but cannot find a package called "literate".

Have you tried Document>  Settings>  Modules>  Sweave? And Settings>
Class>  Article (or whichever you use)? Else, please send a small
sample of your LyX Sweave file.

Liviu


I have updated "all" run texhash and reconfigured lyx, but still the
same
error.

Thanks,

Graham

On 20 August 2011 17:40, Graham Smith<[email protected]>  wrote:

I am trying to get Sweave to work with lyx 2.0 on Snow leopard with
Mactex
2010

I had Lyx 1.6 working fine, but uninstalled before installing lyx 2.0

Opening a file in Lyx 2.0 (originally from Ubuntu 11.04 and lyx 2.0)
gives
me an error that I am missing

literate-latex
noweb.sty

I know lyx 2.0 uses modules now, but all the instructions I can find
still
seem to refer to the old installation, and I am not at all sure what I
should be doing here. The Mac is a little bit of a mystery to me, so I
would
be very grateful for a bit of hand holding.

I'm a bit surprised that googling hasn't found anything, so I assume
its
just me.

many thanks,

Graham





--
Do you know how to read?
http://www.alienetworks.com/srtest.cfm
http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader
Do you know how to write?
http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail





I just saw that your file uses both noweb and sweave modules at once. But you really want to use sweave, not noweb, don't you? Go to Document > Settings > Module and delete the "noweb" module from the right-hand side list. My guess is that this should be sufficient.

If this file was created with LyX 1.6 and then converted to LyX 2.0, you might have found a bug in the conversion routine. Do you have a sample LyX 1.6 file which reproduces the problem when opened in 2.0?

--
Julien

Reply via email to