Hi Yihui, thank you very much for your answer.
Just before I read your reply I deleted my basicTex and installed the full MacTex on my system. When I compile my .Rnw file I finally get a compiled PDF file. Nevertheless, R outputs the following error message: ----------------------- Not regenerating makefile for externalization, if your figures have changed, remove /XXXX/test2.makefile and recompile. Error in tools::texi2dvi(paste(fn, "tex", sep = "."), pdf = pdf, ...) : Running 'texi2dvi' on '/XXXXX/test2.tex' failed. In addition: Warning message: 'DESCRIPTION' file has 'Encoding' field and re-encoding is not possible ----------------------- It sounds a bit odd to me because in Eclipse I use the function: Build tex file using the Eclipse/Texclipse configuration: output format: PDF, build commands: pdflatex Now I am wondering why R runs texi2dvi at all? Referring to your answer. If I include or exclude \usepackage{tikz} does not make a difference. I get the same error message. Best regards, syrvn -- View this message in context: http://r.789695.n4.nabble.com/simplest-pgfSweave-example-results-in-error-tp3856628p3858091.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.