Re: [R] Sweave special characters problem

2010-07-22 Thread Bunny, lautloscrew.com
Thx everybody, finally I got it to go. I switched all three files (mysource.R, sweavetemplate.Rnw,invokeSweave.R) to UTF-8 encoding, switched the options() like suggested below and it just worked. On 22.07.2010, at 16:11, David Winsemius wrote: > > On Jul 22, 2010, at 9:39 AM, Bunny, lautlos

Re: [R] Sweave special characters problem

2010-07-22 Thread Bunny, lautloscrew.com
Dear all, i think I am a step further with the issue. I am pretty sure now, that it is not a Sweave problem. It's indeed an encoding problem with my Mac. If i source the file without any sweave source("myRcode.R") I already get an error message, despite the fact that the code is correct. If

Re: [R] Sweave special characters problem

2010-07-22 Thread David Winsemius
On Jul 22, 2010, at 9:39 AM, Bunny, lautloscrew.com wrote: Sorry all, for not posting a minimal example. I am running R on Mac OS X snow leopard with Komodo edit / Sciviews-R. The problem is that the code does not work any more if there is an umlaut in my R code. The error message is som

Re: [R] Sweave special characters problem

2010-07-22 Thread Duncan Murdoch
On 22/07/2010 9:39 AM, Bunny, lautloscrew.com wrote: Sorry all, for not posting a minimal example. I am running R on Mac OS X snow leopard with Komodo edit / Sciviews-R. The problem is that the code does not work any more if there is an umlaut in my R code. The error message is some strange mi

Re: [R] Sweave special characters problem

2010-07-22 Thread Bunny, lautloscrew.com
Sorry all, for not posting a minimal example. I am running R on Mac OS X snow leopard with Komodo edit / Sciviews-R. The problem is that the code does not work any more if there is an umlaut in my R code. The error message is some strange mixture of german and english, so this what the error me

Re: [R] Sweave special characters problem

2010-07-22 Thread Allan Engelhardt
A standalone example is always helpful. The following works for me, so I am probably not understanding your problem: ---[BEGIN: umlaut.Rnw]--- \documentclass[a4paper]{article} \usepackage{ucs} \usepackage[utf8x]{inputenc} \begin{document} <>= x <- data.frame(Geschäftslage=1:10) summary(x) @ \

Re: [R] Sweave special characters problem

2010-07-22 Thread Duncan Murdoch
On 22/07/2010 8:19 AM, Bunny, lautloscrew.com wrote: Dear all, I use Sweave to create my reports. Unfortunately my script crashes whenever I my R code contains special characters like umlauts. Is there a way to to escape special characters in Sweave... This is the line that crashes Sweave: gl

[R] Sweave special characters problem

2010-07-22 Thread Bunny, lautloscrew.com
Dear all, I use Sweave to create my reports. Unfortunately my script crashes whenever I my R code contains special characters like umlauts. Is there a way to to escape special characters in Sweave... This is the line that crashes Sweave: gl_bybranch = ddply(new_wans,.(period,Branchen), functi