Thanks. I have upgraded to MiKTeX 2.8 but it still fails. See below and attached test.log. If I look in the MiKTeX package manager (mpm from commandn line) I see a pgf latex package was installed today so I presume its the latest. I do not see a separate tikz latex package so I presume its part of pgf.<br>
<br>C:\tmp2\tikzDevice\inst\tests>Rscript testRTikZDevice.R --output=output > test.log<br>Loading required package: filehash<br>Loading required package: methods<br>filehash: Simple key-value database (2.0-1 2008-12-19)<br>
tikzDevice: A Device for R Graphics Output in PGF/TikZ Format (v0.4.8)<br>Checking for a LaTeX compiler...<br><br><br>A working LaTeX compiler was found in:<br> The PATH using the command latex<br><br>Global option tikzLatex set to:<br>
C:\PROGRA~1\MIKTEX~1.8\miktex\bin\latex.exe<br><br>MiKTeX-pdfTeX 2.8.3563 (1.40.10) (MiKTeX 2.8)<br>Copyright (C) 1982 D. E. Knuth, (C) 1996-2006 Han The Thanh<br>TeX is a trademark of the American Mathematical Society.<br>
<br><br>Error in getMetricsFromLatex(TeXMetrics) :<br> ******** There was a problem calculating string metrics,<br> ******** likely there was a problem with your custom packages.<br> ******** See the LaTeX log file above for details.<br>
Calls: system.time ... localTitle -> title -> <Anonymous> -> getMetricsFromLatex<br><br>Execution halted<br><br><div class="gmail_quote">On Fri, Dec 4, 2009 at 6:23 PM, Cameron Bracken <span dir="ltr"><<a href="mailto:cameron.bracken@gmail.com">cameron.bracken@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">It seems like you are using an outdated version of pgf/tikz:<br>
<br>
Package: tikz 2007/06/07 v1.18 (rcs-revision 1.87)<br>
<br>
There must be something in one of the tests that depends on version<br>
2.00. This is likely causing the error. It is really worth upgrading<br>
(<a href="http://sourceforge.net/projects/pgf/" target="_blank">http://sourceforge.net/projects/pgf/</a>). If I'm not mistaken this<br>
version is included in MikTeX 2.8.<br>
<br>
It is not listed currently as a SystemRequirement but it really should be.<br>
<font color="#888888"><br>
-Cameron<br>
</font><div><div></div><div class="h5"><br>
<br>
<br>
On Fri, Dec 4, 2009 at 4:03 PM, Gabor Grothendieck<br>
<<a href="mailto:ggrothendieck@gmail.com">ggrothendieck@gmail.com</a>> wrote:<br>
> I commented out the source statement but am still getting an error on this.<br>
> Here is the output and test.log is attached.<br>
><br>
> C:\tmp2\tikzDevice\inst\tests>findstr source testRTikZDevice.R<br>
> # source('testXeLaTeX.R')<br>
><br>
> C:\tmp2\tikzDevice\inst\tests>Rscript testRTikZDevice.R --output=output ><br>
> test.l<br>
> og<br>
> Loading required package: filehash<br>
> Loading required package: methods<br>
> filehash: Simple key-value database (2.0-1 2008-12-19)<br>
> tikzDevice: A Device for R Graphics Output in PGF/TikZ Format (v0.4.8)<br>
> Checking for a LaTeX compiler...<br>
><br>
><br>
> A working LaTeX compiler was found in:<br>
> The PATH using the command latex<br>
><br>
> Global option tikzLatex set to:<br>
> C:\PROGRA~1\MIKTEX~1.7\miktex\bin\latex.exe<br>
><br>
> MiKTeX-pdfTeX 2.7.2808 (1.40.4) (MiKTeX 2.7)<br>
> Copyright (C) 1982 D. E. Knuth, (C) 1996-2006 Han The Thanh<br>
> TeX is a trademark of the American Mathematical Society.<br>
><br>
><br>
> Error in getMetricsFromLatex(TeXMetrics) :<br>
> ******** There was a problem calculating string metrics,<br>
> ******** likely there was a problem with your custom packages.<br>
> ******** See the LaTeX log file above for details.<br>
> Calls: system.time ... localTitle -> title -> <Anonymous> -><br>
> getMetricsFromLatex<br>
><br>
> Execution halted<br>
</div></div></blockquote></div><br>