Re: [R] Input encoding problem when using sweave with xetex

2010-05-12 Thread RICHARD M. HEIBERGER
On Wed, May 12, 2010 at 7:07 PM, Erich Studerus wrote: > Thanks again. It finally worked after copying the Sweave.sh file to a path > that contains no spaces. Is there a special command for windows specific > path names with spaces? > > Erich > Use the 8.3 filename. From the MSDOS cmd window, yo

Re: [R] Input encoding problem when using sweave with xetex

2010-05-12 Thread Duncan Murdoch
On 12/05/2010 7:07 PM, Erich Studerus wrote: Thanks again. It finally worked after copying the Sweave.sh file to a path that contains no spaces. Is there a special command for windows specific path names with spaces? Putting the path in double quotes might work, but I've no idea how to tel

Re: [R] Input encoding problem when using sweave with xetex

2010-05-12 Thread Erich Studerus
Thanks again. It finally worked after copying the Sweave.sh file to a path that contains no spaces. Is there a special command for windows specific path names with spaces? Erich On Wed, 12 May 2010 18:04:44 -0400 Duncan Murdoch wrote: On 12/05/2010 5:12 PM, Erich Studerus wrote: You were r

Re: [R] Input encoding problem when using sweave with xetex

2010-05-12 Thread Duncan Murdoch
On 12/05/2010 5:12 PM, Erich Studerus wrote: You were right, that I would run into trouble with all these "". However, the second method doesn't work either. Somehow, the UTF8Sweave.sh file is not found during the compilation of my document. It says "can't open perl script .../bin/UTF8Sweave.sh

Re: [R] Input encoding problem when using sweave with xetex

2010-05-12 Thread Erich Studerus
You were right, that I would run into trouble with all these "". However, the second method doesn't work either. Somehow, the UTF8Sweave.sh file is not found during the compilation of my document. It says "can't open perl script .../bin/UTF8Sweave.sh: No such file or directory". I double checked

Re: [R] Input encoding problem when using sweave with xetex

2010-05-12 Thread Duncan Murdoch
On 12/05/2010 3:55 PM, Erich Studerus wrote: Thanks again. Putting options(encoding="") into the R code chunk before calling the read.xls function indeed did the trick. Now, I have one last question: How can I edit the LyX preference file to call R with options(encoding='UTF-8'). I prefer to ed

Re: [R] Input encoding problem when using sweave with xetex

2010-05-12 Thread Erich Studerus
Thanks again. Putting options(encoding="") into the R code chunk before calling the read.xls function indeed did the trick. Now, I have one last question: How can I edit the LyX preference file to call R with options(encoding='UTF-8'). I prefer to edit the LyX preference file rather than the Sw

Re: [R] Input encoding problem when using sweave with xetex

2010-05-12 Thread Duncan Murdoch
On 12/05/2010 2:29 PM, Erich Studerus wrote: Thank you! I edited the Sweave.sh file and it works now for reading data stored as R data files, but the read.xls function from the gdata-package does no longer work. options('encoding'='UTF-8') require(gdata) read.xls("http://www.schwerhoerigkeit.p

Re: [R] Input encoding problem when using sweave with xetex

2010-05-12 Thread Erich Studerus
Thank you! I edited the Sweave.sh file and it works now for reading data stored as R data files, but the read.xls function from the gdata-package does no longer work. options('encoding'='UTF-8') require(gdata) read.xls("http://www.schwerhoerigkeit.pop.ch/hoergeraete_test.xls";, stringsAsFactor

Re: [R] Input encoding problem when using sweave with xetex

2010-05-12 Thread Duncan Murdoch
On 12/05/2010 11:36 AM, Erich Studerus wrote: Putting \usepackage[cp1252]{inputenc} into my preamble is not an option, because XeTeX unlike LaTeX needs UTF-8 has input encoding. My goal is also to have a LyX document that can be compiled both on Mac and Windows. I usually compile my Lyx-Sweave d

Re: [R] Input encoding problem when using sweave with xetex

2010-05-12 Thread Erich Studerus
roject.org/contrib/extra/lyx/preferences Regards, Erich -Ursprüngliche Nachricht- Von: Duncan Murdoch [mailto:murdoch.dun...@gmail.com] Gesendet: Mittwoch, 12. Mai 2010 16:56 An: Erich Studerus Cc: r-help@r-project.org Betreff: Re: [R] Input encoding problem when using sweave with xetex On

Re: [R] Input encoding problem when using sweave with xetex

2010-05-12 Thread Duncan Murdoch
as though Lyx has already done that for you. Duncan Murdoch Regards, Erich -Ursprüngliche Nachricht- Von: Duncan Murdoch [mailto:murdoch.dun...@gmail.com] Gesendet: Mittwoch, 12. Mai 2010 15:27 An: Erich Studerus Cc: r-help@r-project.org Betreff: Re: [R] Input encoding p

Re: [R] Input encoding problem when using sweave with xetex

2010-05-12 Thread Erich Studerus
ailto:murdoch.dun...@gmail.com] Gesendet: Mittwoch, 12. Mai 2010 15:27 An: Erich Studerus Cc: r-help@r-project.org Betreff: Re: [R] Input encoding problem when using sweave with xetex On 12/05/2010 8:37 AM, Erich Studerus wrote: > Hello > > > > Because I want to use different true

Re: [R] Input encoding problem when using sweave with xetex

2010-05-12 Thread Duncan Murdoch
On 12/05/2010 8:37 AM, Erich Studerus wrote: Hello Because I want to use different true type fonts with latex, I'm using the XeTeX typesetting engine for my sweave-documents. I'm using Lyx with Sweave on a Windows 7 PC and have set up LyX to work with XeTeX according to the following instru