[R] dynamic reports with sweave: error when compiling the tex-file

John Kane jrkrideau at inbox.com
Thu Apr 7 16:57:48 CEST 2016


Definitely yes I just tried a one line latex document and it bombed with \begin{ document } but is fine with \begin{document} .

I think the spaces within the {} must all be removed. Latex does not like spaces

John Kane
Kingston ON Canada


> -----Original Message-----
> From: jdnewmil at dcn.davis.ca.us
> Sent: Thu, 07 Apr 2016 05:42:57 -0700
> To: paladini at trustindata.de, r-help at r-project.org
> Subject: Re: [R] dynamic reports with sweave: error when compiling the
> tex-file
> 
> Did you really put spaces between the backslashes and the keywords? That
> would be a problem...
> --
> Sent from my phone. Please excuse my brevity.
> 
> On April 7, 2016 4:32:29 AM PDT, paladini at trustindata.de wrote:
> >Hello,
> >I took my first steps in dynamic reports with Gnu R and used sweave().
>> 
> >I therefore run Sweave() with an example of Friedrich Leisch, starting
>> 
> >like this:
>> 
> >\ documentclass [ a4paper ]{ article }
> >\ title { Sweave Example 1}
> >\ author { Friedrich Leisch }
> >\ begin { document }
> >\ maketitle
> >and so on.
>> 
> >It worked very well but when I tried to compile the latex file I get
> >this error message: ! LaTeX Error: Missing \begin{document}."
>> 
>> 
> >But clearly there is a "begin{document}"
>> 
> >I looked for a clue searching the internet and read that maybe my
> >editor writes invisible signs, so called boms, so that "\begin
> >{document} " is not really at the beginninng but these boms.
>> 
> >Unfortunatly I have not the faintest how to solve the problem.
>> 
> >(I am using GNU R 3.01 and windows10 and installed MiKTex.)
>> 
> >It would be really nice if someone could help me!
>> 
>> 
> >Best  regards and thanking you in anticipation.
>> 
> >Claudia
>> 
> >______________________________________________
> >R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> >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.
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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.

____________________________________________________________
FREE ONLINE PHOTOSHARING - Share your photos online with your friends and family!
Visit http://www.inbox.com/photosharing to find out more!



More information about the R-help mailing list