Hi

 

I was very pleased to see that the latest alpha version of Lyx now supports
Sweave/R code chunks out of the box with any document class. This is a
killer feature IMHO! I tried the latest version of Lyx 2.0 alpha 3 on a
Windows PC and it works quite well. However, I had some problems with
plotting strings containing accented letters. For instance, the following
code chunk produces an error:

<<echo=F, fig=T>>=

plot(a, main = ‘äöü’)

@

 

It seems that R is not executed with any locale settings. For instance

 

<<echo=F, fig=T>>=

Sys.getlocale()

@

 

produces “C”

 

I had this problem already with an earlier set up of Sweave on a Mac and I
was able to solve it. See this discussion:

http://www.mail-archive.com/[email protected]/msg04989.html

 

 

I also got an error when I used the XeTeX typesetting engine in combination
with the Sweave module. 

 

Regards,

Erich

Reply via email to