Re: [R] Sweave doesn't work

2011-08-22 Thread Eik Vettorazzi
Hi Josh, you are absolutly right. Thanks for pointing that out. It is the "Scode"- environment which causes the error in TeX. @Daniele: have a look at the Sweave user manual (page 7ff) and try Sweave('example.Rtex',syntax=SweaveSyntaxLatex) Your Scode block should not be asterisked. I don't know

Re: [R] Sweave doesn't work

2011-08-22 Thread Joshua Wiley
Hi Eik, On Mon, Aug 22, 2011 at 4:14 AM, Eik Vettorazzi wrote: > Hi Daniele, > "_" in "dati_england" is treated as a special character in LaTeX math > mode and causes your LaTeX-compiler trying to switch to math mode (you > might have noticed a warning abaout "missing `$' inserted"). To produce >

Re: [R] Sweave doesn't work

2011-08-22 Thread Eik Vettorazzi
Hi Daniele, "_" in "dati_england" is treated as a special character in LaTeX math mode and causes your LaTeX-compiler trying to switch to math mode (you might have noticed a warning abaout "missing `$' inserted"). To produce a plain "_" in TeX you have to mask it as "\_". Package Hmisc has some san

Re: [R] Sweave doesn't work

2011-08-21 Thread Philipp Pagel
On Sun, Aug 21, 2011 at 09:18:25AM -0700, danielepippo wrote: > Sweave("example.Rtex") in R it seems working [...] > <*> ...le/Desktop/dati/LaTeX1.Rtex* Sounds like you are first running sweave on the file 'example.Rtex' and later LaTex on 'LaTeX1.Rtex' Two points: 1) why do these files have

Re: [R] Sweave doesn't work

2011-08-21 Thread Joshua Wiley
Hi, You would probably be better off providing us with the code you weave rather than the TeX code. Also, the problem is quite possibly not near where the error occurred. In my (admittedly limited) experience, runaway argument issues tend to mean at some earlier point I: A) did not choose the r

[R] Sweave doesn't work

2011-08-21 Thread danielepippo
Hi R users. I've got a problem in producing the pdf file from Latex with R code. When I run the code Sweave("example.Rtex") in R it seems working, but when I run the Latex file it doesn't. The code error shown to me is below: *Runaway argument? {echo=FALSE} data<- read.csv("C:\\Users\\Daniele\\D