> pgfSweave("NIBOR-analysis.Rnw",pdf=T) Writing to file NIBOR-analysis.tex Processing code chunks ... 1 : term verbatim (label=setup) 2 : echo highlight term verbatim 3 : echo highlight term verbatim 4 : term tex (label=tab1) 5 : term verbatim tikz external sanitize (label=fig1) (Re)Running External Chunk: fig1 6 : echo highlight term verbatim 7 : term verbatim tikz external sanitize (label=fig2) (Re)Running External Chunk: fig2 8 : echo highlight term verbatim 9 : echo highlight term verbatim 10 : echo highlight term verbatim 11 : term verbatim tikz external sanitize (label=fig3) (Re)Running External Chunk: fig3 \documentclass[10pt]{article} \usepackage{tikz} \usepackage[active,tightpage,psfixbb]{preview} \PreviewEnvironment{pgfpicture} \setlength\PreviewBorder{0pt} \usepackage[T1]{fontenc} \usetikzlibrary{calc} \batchmode \begin{document} \begin{tikzpicture} \node[inner sep=0pt, outer sep=0pt, scale=0.8299999833107] (TeX) { -1.5% }; \path let \p1 = ($(TeX.east) - (TeX.west)$), \n1 = {veclen(\x1,\y1)} in (TeX.east) -- (TeX.west) node{ \typeout{tikzTeXWidth=\n1} }; \makeatletter \@@end This is pdfTeX, Version 3.1415926-1.40.11 (MiKTeX 2.9) (preloaded format=pdflatex 2011.7.29) 30 JUL 2011 19:18 entering extended mode **C:/DOCUME?1/Berner/LOKALE?1/Temp/Rtmp9YkWVb/tikzStringWidthCalc.tex (C:/DOCUME~1/Berner/LOKALE~1/Temp/Rtmp9YkWVb/tikzStringWidthCalc.tex LaTeX2e <2009/09/24> Babel and hyphenation patterns for english, afrikaans, ancientgreek, ar abic, armenian, assamese, basque, bengali, bokmal, bulgarian, catalan, coptic, croatian, czech, danish, dutch, esperanto, estonian, farsi, finnish, french, ga lician, german, german-x-2009-06-19, greek, gujarati, hindi, hungarian, iceland ic, indonesian, interlingua, irish, italian, kannada, kurmanji, lao, latin, lat vian, lithuanian, malayalam, marathi, mongolian, mongolianlmc, monogreek, ngerm an, ngerman-x-2009-06-19, nynorsk, oriya, panjabi, pinyin, polish, portuguese, romanian, russian, sanskrit, serbian, slovak, slovenian, spanish, swedish, swis sgerman, tamil, telugu, turkish, turkmen, ukenglish, ukrainian, uppersorbian, u senglishmax, welsh, loaded. ("C:\Programfiler\MiKTeX 2.9\tex\latex\base\article.cls" Document Class: article 2007/10/19 v1.4h Standard LaTeX document class ("C:\Programfiler\MiKTeX 2.9\tex\latex\base\size10.clo" File: size10.clo 2007/10/19 v1.4h Standard LaTeX file (size option) ) \c@part=\count79 \c@section=\count80 \c@subsection=\count81 \c@subsubsection=\count82 \c@paragraph=\count83 \c@subparagraph=\count84 \c@figure=\count85 \c@table=\count86 \abovecaptionskip=\skip41 \belowcaptionskip=\skip42 \bibindent=\dimen102 ) ("C:\Programfiler\MiKTeX 2.9\tex\latex\pgf\frontendlayer\tikz.sty" ("C:\Progr amfiler\MiKTeX 2.9\tex\latex\pgf\basiclayer\pgf.sty" ("C:\Programfiler\MiKTeX 2 .9\tex\latex\pgf\utilities\pgfrcs.sty" ("C:\Programfiler\MiKTeX 2.9\tex\generic \pgf\utilities\pgfutil-common.tex" \pgfutil@everybye=\toks14 ) ("C:\Programfiler\MiKTeX 2.9\tex\generic\pgf\utilities\pgfutil-latex.def" \pgfutil@abb=\box26 ("C:\Programfiler\MiKTeX 2.9\tex\latex\ms\everyshi.sty" Package: everyshi 2001/05/15 v3.00 EveryShipout Package (MS) )) ("C:\Programfiler\MiKTeX 2.9\tex\generic\pgf\utilities\pgfrcs.code.tex" Package: pgfrcs 2010/10/25 v2.10 (rcs-revision 1.24) )) Package: pgf 2008/01/15 v2.10 (rcs-revision 1.12) ("C:\Programfiler\MiKTeX 2.9\tex\latex\pgf\basiclayer\pgfcore.sty" ("C:\Program filer\MiKTeX 2.9\tex\latex\graphics\graphicx.sty" Package: graphicx 1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR) ("C:\Programfiler\MiKTeX 2.9\tex\latex\graphics\keyval.sty" Package: keyval 1999/03/16 v1.13 key=value parser (DPC) \KV@toks@=\toks15 ) ("C:\Programfiler\MiKTeX 2.9\tex\latex\graphics\graphics.sty" Package: graphics 2009/02/05 v1.0o Standard LaTeX Graphics (DPC,SPQR) ("C:\Programfiler\MiKTeX 2.9\tex\latex\graphics\trig.sty" Package: trig 1999/03/16 v1.09 sin cos tan (DPC) ) ("C:\Programfiler\MiKTeX 2.9\tex\latex\00miktex\graphics.cfg" File: graphics.cfg 2007/01/18 v1.5 graphics configuration of teTeX/TeXLive ) Package graphics Info: Driver file: pdftex.def on input line 91. ("C:\Programfiler\MiKTeX 2.9\tex\latex\pdftex-def\pdftex.def" File: pdftex.def 2011/04/25 v0.06b Graphics/color for pdfTeX ("C:\Programfiler\MiKTeX 2.9\tex\generic\oberdiek\infwarerr.sty" Package: infwarerr 2010/04/08 v1.3 Providing info/warning/message (HO) ) ("C:\Programfiler\MiKTeX 2.9\tex\generic\oberdiek\ltxcmds.sty" Package: ltxcmds 2011/04/18 v1.20 LaTeX kernel commands for general use (HO) ) \Gread@gobject=\count87 )) \Gin@req@height=\dimen103 \Gin@req@width=\dimen104 ) ("C:\Programfiler\MiKTeX 2.9\tex\latex\pgf\systemlayer\pgfsys.sty" ("C:\Progr amfiler\MiKTeX 2.9\tex\generic\pgf\systemlayer\pgfsys.code.tex" Package: pgfsys 2010/06/30 v2.10 (rcs-revision 1.37) ("C:\Programfiler\MiKTeX 2.9\tex\generic\pgf\utilities\pgfkeys.code.tex" \pgfkeys@pathtoks=\toks16 \pgfkeys@temptoks=\toks17 ("C:\Programfiler\MiKTeX 2.9\tex\generic\pgf\utilities\pgfkeysfiltered.code.tex " \pgfkeys@tmptoks=\toks18 )) \pgf@x=\dimen105 \pgf@y=\dimen106 \pgf@xa=\dimen107 \pgf@ya=\dimen108 \pgf@xb=\dimen109 \pgf@yb=\dimen110 \pgf@xc=\dimen111 \pgf@yc=\dimen112 \w@pgf@writea=\write3 \r@pgf@reada=\read1 \c@pgf@counta=\count88 \c@pgf@countb=\count89 \c@pgf@countc=\count90 \c@pgf@countd=\count91 ("C:\Programfiler\MiKTeX 2.9\tex\generic\pgf\systemlayer\pgf.cfg" File: pgf.cfg 2008/05/14 (rcs-revision 1.7) ) Package pgfsys Info: Driver file for pgf: pgfsys-pdftex.def on input line 900. ("C:\Programfiler\MiKTeX 2.9\tex\generic\pgf\systemlayer\pgfsys-pdftex.def" File: pgfsys-pdftex.def 2009/05/22 (rcs-revision 1.26) ("C:\Programfiler\MiKTeX 2.9\tex\generic\pgf\systemlayer\pgfsys-common-pdf.def" File: pgfsys-common-pdf.def 2008/05/19 (rcs-revision 1.10) ))) ("C:\Programfiler\MiKTeX 2.9\tex\generic\pgf\systemlayer\pgfsyssoftpath.code.te x" File: pgfsyssoftpath.code.tex 2008/07/18 (rcs-revision 1.7) \pgfsyssoftpath@smallbuffer@items=\count92 \pgfsyssoftpath@bigbuffer@items=\count93 ) ("C:\Programfiler\MiKTeX 2.9\tex\generic\pgf\systemlayer\pgfsysprotocol.code.te x" File: pgfsysprotocol.code.tex 2006/10/16 (rcs-revision 1.4) )) ("C:\Programfiler\MiKTeX 2.9\tex\latex\xcolor\xcolor.sty" Package: xcolor 2007/01/21 v2.11 LaTeX color extensions (UK) ("C:\Programfiler\MiKTeX 2.9\tex\latex\00miktex\color.cfg" File: color.cfg 2007/01/18 v1.5 color configuration of teTeX/TeXLive ) Package xcolor Info: Driver file: pdftex.def on input line 225. Package xcolor Info: Model `cmy' substituted by `cmy0' on input line 1337. Package xcolor Info: Model `hsb' substituted by `rgb' on input line 1341. Package xcolor Info: Model `RGB' extended on input line 1353. Package xcolor Info: Model `HTML' substituted by `rgb' on input line 1355. Package xcolor Info: Model `Hsb' substituted by `hsb' on input line 1356. Package xcolor Info: Model `tHsb' substituted by `hsb' on input line 1357. Package xcolor Info: Model `HSB' substituted by `hsb' on input line 1358. Package xcolor Info: Model `Gray' substituted by `gray' on input line 1359. Package xcolor Info: Model `wave' substituted by `hsb' on input line 1360. ) ("C:\Programfiler\MiKTeX 2.9\tex\generic\pgf\basiclayer\pgfcore.code.tex" Package: pgfcore 2010/04/11 v2.10 (rcs-revision 1.7) ("C:\Programfiler\MiKTeX 2.9\tex\generic\pgf\math\pgfmath.code.tex" ("C:\Progra mfiler\MiKTeX 2.9\tex\generic\pgf\math\pgfmathcalc.code.tex" ("C:\Programfiler\ MiKTeX 2.9\tex\generic\pgf\math\pgfmathutil.code.tex") ("C:\Programfiler\MiKTeX 2.9\tex\generic\pgf\math\pgfmathparser.code.tex" \pgfmath@dimen=\dimen113 \pgfmath@count=\count94 \pgfmath@box=\box27 \pgfmath@toks=\toks19 \pgfmath@stack@operand=\toks20 \pgfmath@stack@operation=\toks21 ) ("C:\Programfiler\MiKTeX 2.9\tex\generic\pgf\math\pgfmathfunctions.code.tex" ("C:\Programfiler\MiKTeX 2.9\tex\generic\pgf\math\pgfmathfunctions.basic.code.t ex") ("C:\Programfiler\MiKTeX 2.9\tex\generic\pgf\math\pgfmathfunctions.trigonometri c.code.tex") ("C:\Programfiler\MiKTeX 2.9\tex\generic\pgf\math\pgfmathfunctions.random.code. tex") ("C:\Programfiler\MiKTeX 2.9\tex\generic\pgf\math\pgfmathfunctions.comparison.c ode.tex") ("C:\Programfiler\MiKTeX 2.9\tex\generic\pgf\math\pgfmathfunctions.base.code.te x") ("C:\Programfiler\MiKTeX 2.9\tex\generic\pgf\math\pgfmathfunctions.round.code.t ex") ("C:\Programfiler\MiKTeX 2.9\tex\generic\pgf\math\pgfmathfunctions.misc.code.te x"))) ("C:\Programfiler\MiKTeX 2.9\tex\generic\pgf\math\pgfmathfloat.code.tex" \c@pgfmathroundto@lastzeros=\count95 )) ("C:\Programfiler\MiKTeX 2.9\tex\generic\pgf\basiclayer\pgfcorepoints.code.t ex" File: pgfcorepoints.code.tex 2010/04/09 (rcs-revision 1.20) \pgf@picminx=\dimen114 \pgf@picmaxx=\dimen115 \pgf@picminy=\dimen116 \pgf@picmaxy=\dimen117 \pgf@pathminx=\dimen118 \pgf@pathmaxx=\dimen119 \pgf@pathminy=\dimen120 \pgf@pathmaxy=\dimen121 \pgf@xx=\dimen122 \pgf@xy=\dimen123 \pgf@yx=\dimen124 \pgf@yy=\dimen125 \pgf@zx=\dimen126 \pgf@zy=\dimen127 ) ("C:\Programfiler\MiKTeX 2.9\tex\generic\pgf\basiclayer\pgfcorepathconstruct.co de.tex" File: pgfcorepathconstruct.code.tex 2010/08/03 (rcs-revision 1.24) \pgf@path@lastx=\dimen128 \pgf@path@lasty=\dimen129 ) ("C:\Programfiler\MiKTeX 2.9\tex\generic\pgf\basiclayer\pgfcorepathusage.code.t ex" File: pgfcorepathusage.code.tex 2008/04/22 (rcs-revision 1.12) \pgf@shorten@end@additional=\dimen130 \pgf@shorten@start@additional=\dimen131 ) ("C:\Programfiler\MiKTeX 2.9\tex\generic\pgf\basiclayer\pgfcorescopes.code.te x" File: pgfcorescopes.code.tex 2010/09/08 (rcs-revision 1.34) \pgfpic=\box28 \pgf@hbox=\box29 \pgf@layerbox@main=\box30 \pgf@picture@serial@count=\count96 ) ("C:\Programfiler\MiKTeX 2.9\tex\generic\pgf\basiclayer\pgfcoregraphicstate.cod e.tex" File: pgfcoregraphicstate.code.tex 2008/04/22 (rcs-revision 1.9) \pgflinewidth=\dimen132 ) ("C:\Programfiler\MiKTeX 2.9\tex\generic\pgf\basiclayer\pgfcoretransformations. code.tex" File: pgfcoretransformations.code.tex 2009/06/10 (rcs-revision 1.11) \pgf@pt@x=\dimen133 \pgf@pt@y=\dimen134 \pgf@pt@temp=\dimen135 ) ("C:\Programfiler\MiKTeX 2.9\tex\generic\pgf\basiclayer\pgfcorequick.code.tex " File: pgfcorequick.code.tex 2008/10/09 (rcs-revision 1.3) ) ("C:\Programfiler\MiKTeX 2.9\tex\generic\pgf\basiclayer\pgfcoreobjects.code.t ex" File: pgfcoreobjects.code.tex 2006/10/11 (rcs-revision 1.2) ) ("C:\Programfiler\MiKTeX 2.9\tex\generic\pgf\basiclayer\pgfcorepathprocessing.c ode.tex" File: pgfcorepathprocessing.code.tex 2008/10/09 (rcs-revision 1.8) ) ("C:\Programfiler\MiKTeX 2.9\tex\generic\pgf\basiclayer\pgfcorearrows.code.te x" File: pgfcorearrows.code.tex 2008/04/23 (rcs-revision 1.11) ) ("C:\Programfiler\MiKTeX 2.9\tex\generic\pgf\basiclayer\pgfcoreshade.code.tex " File: pgfcoreshade.code.tex 2008/11/23 (rcs-revision 1.13) \pgf@max=\dimen136 \pgf@sys@shading@range@num=\count97 ) ("C:\Programfiler\MiKTeX 2.9\tex\generic\pgf\basiclayer\pgfcoreimage.code.tex " File: pgfcoreimage.code.tex 2010/03/25 (rcs-revision 1.16) ("C:\Programfiler\MiKTeX 2.9\tex\generic\pgf\basiclayer\pgfcoreexternal.code.te x" File: pgfcoreexternal.code.tex 2010/09/01 (rcs-revision 1.17) \pgfexternal@startupbox=\box31 )) ("C:\Programfiler\MiKTeX 2.9\tex\generic\pgf\basiclayer\pgfcorelayers.code.t ex" File: pgfcorelayers.code.tex 2010/08/27 (rcs-revision 1.2) ) ("C:\Programfiler\MiKTeX 2.9\tex\generic\pgf\basiclayer\pgfcoretransparency.cod e.tex" File: pgfcoretransparency.code.tex 2008/01/17 (rcs-revision 1.2) ) ("C:\Programfiler\MiKTeX 2.9\tex\generic\pgf\basiclayer\pgfcorepatterns.code.te x" File: pgfcorepatterns.code.tex 2009/07/02 (rcs-revision 1.3) ))) ("C:\Programfiler\MiKTeX 2.9\tex\generic\pgf\modules\pgfmoduleshapes.code.t ex" File: pgfmoduleshapes.code.tex 2010/09/09 (rcs-revision 1.13) \pgfnodeparttextbox=\box32 ) ("C:\Programfiler\MiKTeX 2.9\tex\generic\pgf\modules\pgfmoduleplot.code.tex" File: pgfmoduleplot.code.tex 2010/10/22 (rcs-revision 1.8) ) ("C:\Programfiler\MiKTeX 2.9\tex\latex\pgf\compatibility\pgfcomp-version-0-65.s ty" Package: pgfcomp-version-0-65 2007/07/03 v2.10 (rcs-revision 1.7) \pgf@nodesepstart=\dimen137 \pgf@nodesepend=\dimen138 ) ("C:\Programfiler\MiKTeX 2.9\tex\latex\pgf\compatibility\pgfcomp-version-1-18.s ty" Package: pgfcomp-version-1-18 2007/07/23 v2.10 (rcs-revision 1.1) )) ("C:\Programfiler\MiKTeX 2.9\tex\latex\pgf\utilities\pgffor.sty" ("C:\Progra mfiler\MiKTeX 2.9\tex\latex\pgf\utilities\pgfkeys.sty" ("C:\Programfiler\MiKTeX 2.9\tex\generic\pgf\utilities\pgfkeys.code.tex")) ("C:\Programfiler\MiKTeX 2.9 \tex\generic\pgf\utilities\pgffor.code.tex" Package: pgffor 2010/03/23 v2.10 (rcs-revision 1.18) \pgffor@iter=\dimen139 \pgffor@skip=\dimen140 \pgffor@stack=\toks22 \pgffor@toks=\toks23 )) ("C:\Programfiler\MiKTeX 2.9\tex\generic\pgf\frontendlayer\tikz\tikz.code.te x" Package: tikz 2010/10/13 v2.10 (rcs-revision 1.76) ("C:\Programfiler\MiKTeX 2.9\tex\generic\pgf\libraries\pgflibraryplothandlers.c ode.tex" File: pgflibraryplothandlers.code.tex 2010/05/31 v2.10 (rcs-revision 1.15) \pgf@plot@mark@count=\count98 \pgfplotmarksize=\dimen141 ) \tikz@lastx=\dimen142 \tikz@lasty=\dimen143 \tikz@lastxsaved=\dimen144 \tikz@lastysaved=\dimen145 \tikzleveldistance=\dimen146 \tikzsiblingdistance=\dimen147 \tikz@figbox=\box33 \tikz@tempbox=\box34 \tikztreelevel=\count99 \tikznumberofchildren=\count100 \tikznumberofcurrentchild=\count101 \tikz@fig@count=\count102 ("C:\Programfiler\MiKTeX 2.9\tex\generic\pgf\modules\pgfmodulematrix.code.tex" File: pgfmodulematrix.code.tex 2010/08/24 (rcs-revision 1.4) \pgfmatrixcurrentrow=\count103 \pgfmatrixcurrentcolumn=\count104 \pgf@matrix@numberofcolumns=\count105 ) \tikz@expandcount=\count106 ("C:\Programfiler\MiKTeX 2.9\tex\generic\pgf\frontendlayer\tikz\libraries\tikzl ibrarytopaths.code.tex" File: tikzlibrarytopaths.code.tex 2008/06/17 v2.10 (rcs-revision 1.2) ))) Error in getMetricsFromLatex(TeXMetrics) : TeX was unable to calculate metrics for the following string or character: -1.5 Common reasons for failure include: * The string contains a character which is special to LaTeX unless escaped properly, such as % or $. * The string makes use of LaTeX commands provided by a package and the tikzDevice was not told to load the package. The contents of the LaTeX log of the aborted run have been printed above, it may contain additional details as to why the metric calculation failed. In addition: Warning messages: 1: In readLines(texOut) : incomplete final line found on 'C:\DOCUME~1\Berner\LOKALE~1\Temp\Rtmp9YkWVb/tikzStringWidthCalc.log' 2: In readLines(texLog) : incomplete final line found on 'C:\DOCUME~1\Berner\LOKALE~1\Temp\Rtmp9YkWVb/tikzStringWidthCalc.log' Error in driver$runcode(drobj, chunk, chunkopts) : Error in getMetricsFromLatex(TeXMetrics) : TeX was unable to calculate metrics for the following string or character: -1.5 Common reasons for failure include: * The string contains a character which is special to LaTeX unless escaped properly, such as % or $. * The string makes use of LaTeX commands provided by a package and the tikzDevice was not told to load the package. The contents of the LaTeX log of the aborted run have been printed above, it may contain additional details as to why the metric calculation failed.