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 right environment
B) did not close an environment
C) did not properly escape something leading essentially to A or B

Something seems weird to me with the LaTeX code you show though.  In
addition to posting your code (not the TeX output), it would also be
good to post your version of R.

Cheers,

Josh


On Sun, Aug 21, 2011 at 9:18 AM, danielepippo <dan...@hotmail.it> wrote:
> 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\\Desktop\\dati\\dati_england
> ! File ended while scanning use of \FV@BeginScanning.
> <inserted text>
>                \par
> <*> ...le/Desktop/dati/LaTeX1.Rtex*
>
> The Sweave code in Latex is like this:
>
> *\begin{Scode}{echo=FALSE}
> data<-
> read.csv("c:\\Users\\Daniele\\Desktop\\dati\\dati_england.csv",header=T,sep=",")
> \end{Scode}
> \begin{figure}[!h]
> \centering
> \begin{Scode}{fig=TRUE, width=6, height=9, echo=FALSE}
> data1=matrix(0,ncol=4,nrow=4)
> ....
> ....
> \end{Scode}
> \caption{Data}
> \end{figure}*
>
> I don't know how to fix this problem. Any advices?
> Thanks very much
>
> --
> View this message in context: 
> http://r.789695.n4.nabble.com/Sweave-doesn-t-work-tp3758658p3758658.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



-- 
Joshua Wiley
Ph.D. Student, Health Psychology
Programmer Analyst II, ATS Statistical Consulting Group
University of California, Los Angeles
https://joshuawiley.com/

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to