Can you post a reproducible example? Do you have \begin{document} in your Rnw file?
Regards, Yihui -- Yihui Xie <xieyi...@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 <sd...@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 ______________________________________________ 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.