Re: [R] Sweave in LATEX

2009-01-07 Thread Mr Derik
I have solved the problem. It seems that the \Sexpr{} sequence is processed by R rather than latex. If you use: Sweave("Sweave-test-1.Rnw", syntax="SweaveSyntaxNoweb") When processing in R then this is handled in the appropriate way. Duncan Murdoch-2 wrote: > > On 1/6/2009 6:44 AM, Mr Derik

Re: [R] Sweave in LATEX

2009-01-06 Thread Gabor Grothendieck
gt; \begin{Sinput} >>> >>> boxplot(Sepal.Length ~ Species, data = iris) >> >> \end{Sinput} >> \end{Schunk} >> \includegraphics{Sweave-test-1-007} >>\caption{Boxplot of sepal length grouped by species.} >> \end{center} >> \end{f

Re: [R] Sweave in LATEX

2009-01-06 Thread Duncan Murdoch
One other suggestion: use the SweavePDFMikTex function from patchDVI (available on http://r-forge.r-project.org/projects/sweavesearch) to handle both the Sweave call, and the pdflatex call. Duncan Murdoch __ R-help@r-project.org mailing list https:/

Re: [R] Sweave in LATEX

2009-01-06 Thread Duncan Murdoch
trol sequences such as \begin{Schunk} but doesn't recognise \Sexpr. I've uploaded the PDF I get, if that is of any help. Cheers Matt -Original Message- From: Duncan Murdoch [mailto:murd...@stats.uwo.ca] Sent: Tuesday, January 06, 2009 2:18 PM To: Mr Derik Cc: r-help@r-p

Re: [R] Sweave in LATEX

2009-01-06 Thread Mr Derik
weave control sequences such as \begin{Schunk} but doesn't recognise \Sexpr. I've uploaded the PDF I get, if that is of any help. Cheers Matt -Original Message- From: Duncan Murdoch [mailto:murd...@stats.uwo.ca] Sent: Tuesday, January 06, 2009 2:18 PM To: Mr Derik Cc: r-help@r

Re: [R] Sweave in LATEX

2009-01-06 Thread Duncan Murdoch
On 1/6/2009 6:44 AM, Mr Derik wrote: Hello I have been setting up my computer to run Sweave. I have got the whole thing working on example files, except that my MikTex returns an "Undefined Control Sequence" error for \Sexpr and my output file contains verbatim code sequences at the apropriate p

[R] Sweave in LATEX

2009-01-06 Thread Mr Derik
Hello I have been setting up my computer to run Sweave. I have got the whole thing working on example files, except that my MikTex returns an "Undefined Control Sequence" error for \Sexpr and my output file contains verbatim code sequences at the apropriate point in the text rather than the R out