Hello, after trying to convert to pdf using knitr, I get the following error messages from the error log: C:/Users/duve/Documents/plots2.tex:5: LaTeX Error: Missing \begin{document}. See the LaTeX manual or LaTeX Companion for explanation. Type H <return> for immediate help You're in trouble here. Try typing <return> to proceed. If that doesn't work, type X <return> to quit. Has anyone a clue what the problem might be? Thanks Sven -- View this message in context: http://r.789695.n4.nabble.com/knitr-tp4641843.html Sent from the R help mailing list archive at Nabble.com.
Can you post a reproducible example? Do you have \begin{document} in your Rnw file? Regards, Yihui -- Yihui Xie <xieyihui at gmail.com> Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa State University 2215 Snedecor Hall, Ames, IA On Thu, Aug 30, 2012 at 10:35 AM, Sven D <sduve at hotmail.com> wrote:> Hello, > > after trying to convert to pdf using knitr, I get the following error > messages from the error log: > > C:/Users/duve/Documents/plots2.tex:5: LaTeX Error: Missing \begin{document}. > > See the LaTeX manual or LaTeX Companion for explanation. > Type H <return> for immediate help > You're in trouble here. Try typing <return> to proceed. > If that doesn't work, type X <return> to quit. > > > Has anyone a clue what the problem might be? > > > Thanks > > > Sven
Possibly Parallel Threads
- googleVis plot and knitr/sweave
- Setting inline hook to a function identical to default in knitr turns of exponential formatting
- Problem with large/small numbers in knitr
- knitr customization
- how to label two figures in the same chunk independently with knitr