LyX gives me an error when I have the R command `packageVersion` in a knitr chunk. Attached is a mwe .lyx that gives an error for me. I get this error on current trunk and on 2.0.3 when exporting or viewing as pdf (pdflatex). Exporting to latex (pdflatex) and then running pdflatex manually produces the pdf as expected but exits with error code 1 (even though no indication of a problem is given in the terminal which I find to be strange).
I'm pasted the relevant part of the error from the log below and attached are the .lyx file, the .tex file that is produced when exported to latex (pdflatex) and the .log file. LaTeX Font Info: Font shape `T1/cmtt/bx/n' in size <10> not available (Font) Font shape `T1/cmtt/m/n' tried instead on input line 400. ! Undefined control sequence. <argument> ^^M## [1] ' 0.5'^^M l.405 \end{verbatim} The control sequence at the end of the top line of your error message was never \def'ed. If you have misspelled it (e.g., `\hobx'), type `I' and the correct spelling (e.g., `I\hbox'). Otherwise just continue, and I'll forget about whatever was undefined. ! Undefined control sequence. <argument> ^^M## [1] '0.5' ^^M l.405 \end{verbatim} Any ideas? Thanks, Scott
gives_error.lyx
Description: gives_error.lyx
\batchmode \makeatletter \def\input@path{{\string"/home/scott/Desktop/lyx bug/\string"/}} \makeatother \documentclass[english]{article} \usepackage{graphicx, color} \IfFileExists{upquote.sty}{\usepackage{upquote}}{} \definecolor{fgcolor}{rgb}{0.267, 0.267, 0.267} \newcommand{\hlnumber}[1]{\textcolor[rgb]{0,0,0}{#1}}% \newcommand{\hlfunctioncall}[1]{\textcolor[rgb]{0.501960784313725,0,0.329411764705882}{\textbf{#1}}}% \newcommand{\hlstring}[1]{\textcolor[rgb]{0.6,0.6,1}{#1}}% \newcommand{\hlkeyword}[1]{\textcolor[rgb]{0,0,0}{\textbf{#1}}}% \newcommand{\hlargument}[1]{\textcolor[rgb]{0.690196078431373,0.250980392156863,0.0196078431372549}{#1}}% \newcommand{\hlcomment}[1]{\textcolor[rgb]{0.180392156862745,0.6,0.341176470588235}{#1}}% \newcommand{\hlroxygencomment}[1]{\textcolor[rgb]{0.43921568627451,0.47843137254902,0.701960784313725}{#1}}% \newcommand{\hlformalargs}[1]{\textcolor[rgb]{0.690196078431373,0.250980392156863,0.0196078431372549}{#1}}% \newcommand{\hleqformalargs}[1]{\textcolor[rgb]{0.690196078431373,0.250980392156863,0.0196078431372549}{#1}}% \newcommand{\hlassignement}[1]{\textcolor[rgb]{0,0,0}{\textbf{#1}}}% \newcommand{\hlpackage}[1]{\textcolor[rgb]{0.588235294117647,0.709803921568627,0.145098039215686}{#1}}% \newcommand{\hlslot}[1]{\textit{#1}}% \newcommand{\hlsymbol}[1]{\textcolor[rgb]{0,0,0}{#1}}% \newcommand{\hlprompt}[1]{\textcolor[rgb]{0.266666666666667,0.266666666666667,0.266666666666667}{#1}}% \usepackage{color}% \newsavebox{\hlnormalsizeboxclosebrace}% \newsavebox{\hlnormalsizeboxopenbrace}% \newsavebox{\hlnormalsizeboxbackslash}% \newsavebox{\hlnormalsizeboxlessthan}% \newsavebox{\hlnormalsizeboxgreaterthan}% \newsavebox{\hlnormalsizeboxdollar}% \newsavebox{\hlnormalsizeboxunderscore}% \newsavebox{\hlnormalsizeboxand}% \newsavebox{\hlnormalsizeboxhash}% \newsavebox{\hlnormalsizeboxat}% \newsavebox{\hlnormalsizeboxpercent}% \newsavebox{\hlnormalsizeboxhat}% \newsavebox{\hlnormalsizeboxsinglequote}% \newsavebox{\hlnormalsizeboxbacktick}% \setbox\hlnormalsizeboxopenbrace=\hbox{\begin{normalsize}\verb.{.\end{normalsize}}% \setbox\hlnormalsizeboxclosebrace=\hbox{\begin{normalsize}\verb.}.\end{normalsize}}% \setbox\hlnormalsizeboxlessthan=\hbox{\begin{normalsize}\verb.<.\end{normalsize}}% \setbox\hlnormalsizeboxdollar=\hbox{\begin{normalsize}\verb.$.\end{normalsize}}% \setbox\hlnormalsizeboxunderscore=\hbox{\begin{normalsize}\verb._.\end{normalsize}}% \setbox\hlnormalsizeboxand=\hbox{\begin{normalsize}\verb.&.\end{normalsize}}% \setbox\hlnormalsizeboxhash=\hbox{\begin{normalsize}\verb.#.\end{normalsize}}% \setbox\hlnormalsizeboxat=\hbox{\begin{normalsize}\verb.@.\end{normalsize}}% \setbox\hlnormalsizeboxbackslash=\hbox{\begin{normalsize}\verb.\.\end{normalsize}}% \setbox\hlnormalsizeboxgreaterthan=\hbox{\begin{normalsize}\verb.>.\end{normalsize}}% \setbox\hlnormalsizeboxpercent=\hbox{\begin{normalsize}\verb.%.\end{normalsize}}% \setbox\hlnormalsizeboxhat=\hbox{\begin{normalsize}\verb.^.\end{normalsize}}% \setbox\hlnormalsizeboxsinglequote=\hbox{\begin{normalsize}\verb.'.\end{normalsize}}% \setbox\hlnormalsizeboxbacktick=\hbox{\begin{normalsize}\verb.`.\end{normalsize}}% \setbox\hlnormalsizeboxhat=\hbox{\begin{normalsize}\verb.^.\end{normalsize}}% \newsavebox{\hltinyboxclosebrace}% \newsavebox{\hltinyboxopenbrace}% \newsavebox{\hltinyboxbackslash}% \newsavebox{\hltinyboxlessthan}% \newsavebox{\hltinyboxgreaterthan}% \newsavebox{\hltinyboxdollar}% \newsavebox{\hltinyboxunderscore}% \newsavebox{\hltinyboxand}% \newsavebox{\hltinyboxhash}% \newsavebox{\hltinyboxat}% \newsavebox{\hltinyboxpercent}% \newsavebox{\hltinyboxhat}% \newsavebox{\hltinyboxsinglequote}% \newsavebox{\hltinyboxbacktick}% \setbox\hltinyboxopenbrace=\hbox{\begin{tiny}\verb.{.\end{tiny}}% \setbox\hltinyboxclosebrace=\hbox{\begin{tiny}\verb.}.\end{tiny}}% \setbox\hltinyboxlessthan=\hbox{\begin{tiny}\verb.<.\end{tiny}}% \setbox\hltinyboxdollar=\hbox{\begin{tiny}\verb.$.\end{tiny}}% \setbox\hltinyboxunderscore=\hbox{\begin{tiny}\verb._.\end{tiny}}% \setbox\hltinyboxand=\hbox{\begin{tiny}\verb.&.\end{tiny}}% \setbox\hltinyboxhash=\hbox{\begin{tiny}\verb.#.\end{tiny}}% \setbox\hltinyboxat=\hbox{\begin{tiny}\verb.@.\end{tiny}}% \setbox\hltinyboxbackslash=\hbox{\begin{tiny}\verb.\.\end{tiny}}% \setbox\hltinyboxgreaterthan=\hbox{\begin{tiny}\verb.>.\end{tiny}}% \setbox\hltinyboxpercent=\hbox{\begin{tiny}\verb.%.\end{tiny}}% \setbox\hltinyboxhat=\hbox{\begin{tiny}\verb.^.\end{tiny}}% \setbox\hltinyboxsinglequote=\hbox{\begin{tiny}\verb.'.\end{tiny}}% \setbox\hltinyboxbacktick=\hbox{\begin{tiny}\verb.`.\end{tiny}}% \setbox\hltinyboxhat=\hbox{\begin{tiny}\verb.^.\end{tiny}}% \newsavebox{\hlscriptsizeboxclosebrace}% \newsavebox{\hlscriptsizeboxopenbrace}% \newsavebox{\hlscriptsizeboxbackslash}% \newsavebox{\hlscriptsizeboxlessthan}% \newsavebox{\hlscriptsizeboxgreaterthan}% \newsavebox{\hlscriptsizeboxdollar}% \newsavebox{\hlscriptsizeboxunderscore}% \newsavebox{\hlscriptsizeboxand}% \newsavebox{\hlscriptsizeboxhash}% \newsavebox{\hlscriptsizeboxat}% \newsavebox{\hlscriptsizeboxpercent}% \newsavebox{\hlscriptsizeboxhat}% \newsavebox{\hlscriptsizeboxsinglequote}% \newsavebox{\hlscriptsizeboxbacktick}% \setbox\hlscriptsizeboxopenbrace=\hbox{\begin{scriptsize}\verb.{.\end{scriptsize}}% \setbox\hlscriptsizeboxclosebrace=\hbox{\begin{scriptsize}\verb.}.\end{scriptsize}}% \setbox\hlscriptsizeboxlessthan=\hbox{\begin{scriptsize}\verb.<.\end{scriptsize}}% \setbox\hlscriptsizeboxdollar=\hbox{\begin{scriptsize}\verb.$.\end{scriptsize}}% \setbox\hlscriptsizeboxunderscore=\hbox{\begin{scriptsize}\verb._.\end{scriptsize}}% \setbox\hlscriptsizeboxand=\hbox{\begin{scriptsize}\verb.&.\end{scriptsize}}% \setbox\hlscriptsizeboxhash=\hbox{\begin{scriptsize}\verb.#.\end{scriptsize}}% \setbox\hlscriptsizeboxat=\hbox{\begin{scriptsize}\verb.@.\end{scriptsize}}% \setbox\hlscriptsizeboxbackslash=\hbox{\begin{scriptsize}\verb.\.\end{scriptsize}}% \setbox\hlscriptsizeboxgreaterthan=\hbox{\begin{scriptsize}\verb.>.\end{scriptsize}}% \setbox\hlscriptsizeboxpercent=\hbox{\begin{scriptsize}\verb.%.\end{scriptsize}}% \setbox\hlscriptsizeboxhat=\hbox{\begin{scriptsize}\verb.^.\end{scriptsize}}% \setbox\hlscriptsizeboxsinglequote=\hbox{\begin{scriptsize}\verb.'.\end{scriptsize}}% \setbox\hlscriptsizeboxbacktick=\hbox{\begin{scriptsize}\verb.`.\end{scriptsize}}% \setbox\hlscriptsizeboxhat=\hbox{\begin{scriptsize}\verb.^.\end{scriptsize}}% \newsavebox{\hlfootnotesizeboxclosebrace}% \newsavebox{\hlfootnotesizeboxopenbrace}% \newsavebox{\hlfootnotesizeboxbackslash}% \newsavebox{\hlfootnotesizeboxlessthan}% \newsavebox{\hlfootnotesizeboxgreaterthan}% \newsavebox{\hlfootnotesizeboxdollar}% \newsavebox{\hlfootnotesizeboxunderscore}% \newsavebox{\hlfootnotesizeboxand}% \newsavebox{\hlfootnotesizeboxhash}% \newsavebox{\hlfootnotesizeboxat}% \newsavebox{\hlfootnotesizeboxpercent}% \newsavebox{\hlfootnotesizeboxhat}% \newsavebox{\hlfootnotesizeboxsinglequote}% \newsavebox{\hlfootnotesizeboxbacktick}% \setbox\hlfootnotesizeboxopenbrace=\hbox{\begin{footnotesize}\verb.{.\end{footnotesize}}% \setbox\hlfootnotesizeboxclosebrace=\hbox{\begin{footnotesize}\verb.}.\end{footnotesize}}% \setbox\hlfootnotesizeboxlessthan=\hbox{\begin{footnotesize}\verb.<.\end{footnotesize}}% \setbox\hlfootnotesizeboxdollar=\hbox{\begin{footnotesize}\verb.$.\end{footnotesize}}% \setbox\hlfootnotesizeboxunderscore=\hbox{\begin{footnotesize}\verb._.\end{footnotesize}}% \setbox\hlfootnotesizeboxand=\hbox{\begin{footnotesize}\verb.&.\end{footnotesize}}% \setbox\hlfootnotesizeboxhash=\hbox{\begin{footnotesize}\verb.#.\end{footnotesize}}% \setbox\hlfootnotesizeboxat=\hbox{\begin{footnotesize}\verb.@.\end{footnotesize}}% \setbox\hlfootnotesizeboxbackslash=\hbox{\begin{footnotesize}\verb.\.\end{footnotesize}}% \setbox\hlfootnotesizeboxgreaterthan=\hbox{\begin{footnotesize}\verb.>.\end{footnotesize}}% \setbox\hlfootnotesizeboxpercent=\hbox{\begin{footnotesize}\verb.%.\end{footnotesize}}% \setbox\hlfootnotesizeboxhat=\hbox{\begin{footnotesize}\verb.^.\end{footnotesize}}% \setbox\hlfootnotesizeboxsinglequote=\hbox{\begin{footnotesize}\verb.'.\end{footnotesize}}% \setbox\hlfootnotesizeboxbacktick=\hbox{\begin{footnotesize}\verb.`.\end{footnotesize}}% \setbox\hlfootnotesizeboxhat=\hbox{\begin{footnotesize}\verb.^.\end{footnotesize}}% \newsavebox{\hlsmallboxclosebrace}% \newsavebox{\hlsmallboxopenbrace}% \newsavebox{\hlsmallboxbackslash}% \newsavebox{\hlsmallboxlessthan}% \newsavebox{\hlsmallboxgreaterthan}% \newsavebox{\hlsmallboxdollar}% \newsavebox{\hlsmallboxunderscore}% \newsavebox{\hlsmallboxand}% \newsavebox{\hlsmallboxhash}% \newsavebox{\hlsmallboxat}% \newsavebox{\hlsmallboxpercent}% \newsavebox{\hlsmallboxhat}% \newsavebox{\hlsmallboxsinglequote}% \newsavebox{\hlsmallboxbacktick}% \setbox\hlsmallboxopenbrace=\hbox{\begin{small}\verb.{.\end{small}}% \setbox\hlsmallboxclosebrace=\hbox{\begin{small}\verb.}.\end{small}}% \setbox\hlsmallboxlessthan=\hbox{\begin{small}\verb.<.\end{small}}% \setbox\hlsmallboxdollar=\hbox{\begin{small}\verb.$.\end{small}}% \setbox\hlsmallboxunderscore=\hbox{\begin{small}\verb._.\end{small}}% \setbox\hlsmallboxand=\hbox{\begin{small}\verb.&.\end{small}}% \setbox\hlsmallboxhash=\hbox{\begin{small}\verb.#.\end{small}}% \setbox\hlsmallboxat=\hbox{\begin{small}\verb.@.\end{small}}% \setbox\hlsmallboxbackslash=\hbox{\begin{small}\verb.\.\end{small}}% \setbox\hlsmallboxgreaterthan=\hbox{\begin{small}\verb.>.\end{small}}% \setbox\hlsmallboxpercent=\hbox{\begin{small}\verb.%.\end{small}}% \setbox\hlsmallboxhat=\hbox{\begin{small}\verb.^.\end{small}}% \setbox\hlsmallboxsinglequote=\hbox{\begin{small}\verb.'.\end{small}}% \setbox\hlsmallboxbacktick=\hbox{\begin{small}\verb.`.\end{small}}% \setbox\hlsmallboxhat=\hbox{\begin{small}\verb.^.\end{small}}% \newsavebox{\hllargeboxclosebrace}% \newsavebox{\hllargeboxopenbrace}% \newsavebox{\hllargeboxbackslash}% \newsavebox{\hllargeboxlessthan}% \newsavebox{\hllargeboxgreaterthan}% \newsavebox{\hllargeboxdollar}% \newsavebox{\hllargeboxunderscore}% \newsavebox{\hllargeboxand}% \newsavebox{\hllargeboxhash}% \newsavebox{\hllargeboxat}% \newsavebox{\hllargeboxpercent}% \newsavebox{\hllargeboxhat}% \newsavebox{\hllargeboxsinglequote}% \newsavebox{\hllargeboxbacktick}% \setbox\hllargeboxopenbrace=\hbox{\begin{large}\verb.{.\end{large}}% \setbox\hllargeboxclosebrace=\hbox{\begin{large}\verb.}.\end{large}}% \setbox\hllargeboxlessthan=\hbox{\begin{large}\verb.<.\end{large}}% \setbox\hllargeboxdollar=\hbox{\begin{large}\verb.$.\end{large}}% \setbox\hllargeboxunderscore=\hbox{\begin{large}\verb._.\end{large}}% \setbox\hllargeboxand=\hbox{\begin{large}\verb.&.\end{large}}% \setbox\hllargeboxhash=\hbox{\begin{large}\verb.#.\end{large}}% \setbox\hllargeboxat=\hbox{\begin{large}\verb.@.\end{large}}% \setbox\hllargeboxbackslash=\hbox{\begin{large}\verb.\.\end{large}}% \setbox\hllargeboxgreaterthan=\hbox{\begin{large}\verb.>.\end{large}}% \setbox\hllargeboxpercent=\hbox{\begin{large}\verb.%.\end{large}}% \setbox\hllargeboxhat=\hbox{\begin{large}\verb.^.\end{large}}% \setbox\hllargeboxsinglequote=\hbox{\begin{large}\verb.'.\end{large}}% \setbox\hllargeboxbacktick=\hbox{\begin{large}\verb.`.\end{large}}% \setbox\hllargeboxhat=\hbox{\begin{large}\verb.^.\end{large}}% \newsavebox{\hlLargeboxclosebrace}% \newsavebox{\hlLargeboxopenbrace}% \newsavebox{\hlLargeboxbackslash}% \newsavebox{\hlLargeboxlessthan}% \newsavebox{\hlLargeboxgreaterthan}% \newsavebox{\hlLargeboxdollar}% \newsavebox{\hlLargeboxunderscore}% \newsavebox{\hlLargeboxand}% \newsavebox{\hlLargeboxhash}% \newsavebox{\hlLargeboxat}% \newsavebox{\hlLargeboxpercent}% \newsavebox{\hlLargeboxhat}% \newsavebox{\hlLargeboxsinglequote}% \newsavebox{\hlLargeboxbacktick}% \setbox\hlLargeboxopenbrace=\hbox{\begin{Large}\verb.{.\end{Large}}% \setbox\hlLargeboxclosebrace=\hbox{\begin{Large}\verb.}.\end{Large}}% \setbox\hlLargeboxlessthan=\hbox{\begin{Large}\verb.<.\end{Large}}% \setbox\hlLargeboxdollar=\hbox{\begin{Large}\verb.$.\end{Large}}% \setbox\hlLargeboxunderscore=\hbox{\begin{Large}\verb._.\end{Large}}% \setbox\hlLargeboxand=\hbox{\begin{Large}\verb.&.\end{Large}}% \setbox\hlLargeboxhash=\hbox{\begin{Large}\verb.#.\end{Large}}% \setbox\hlLargeboxat=\hbox{\begin{Large}\verb.@.\end{Large}}% \setbox\hlLargeboxbackslash=\hbox{\begin{Large}\verb.\.\end{Large}}% \setbox\hlLargeboxgreaterthan=\hbox{\begin{Large}\verb.>.\end{Large}}% \setbox\hlLargeboxpercent=\hbox{\begin{Large}\verb.%.\end{Large}}% \setbox\hlLargeboxhat=\hbox{\begin{Large}\verb.^.\end{Large}}% \setbox\hlLargeboxsinglequote=\hbox{\begin{Large}\verb.'.\end{Large}}% \setbox\hlLargeboxbacktick=\hbox{\begin{Large}\verb.`.\end{Large}}% \setbox\hlLargeboxhat=\hbox{\begin{Large}\verb.^.\end{Large}}% \newsavebox{\hlLARGEboxclosebrace}% \newsavebox{\hlLARGEboxopenbrace}% \newsavebox{\hlLARGEboxbackslash}% \newsavebox{\hlLARGEboxlessthan}% \newsavebox{\hlLARGEboxgreaterthan}% \newsavebox{\hlLARGEboxdollar}% \newsavebox{\hlLARGEboxunderscore}% \newsavebox{\hlLARGEboxand}% \newsavebox{\hlLARGEboxhash}% \newsavebox{\hlLARGEboxat}% \newsavebox{\hlLARGEboxpercent}% \newsavebox{\hlLARGEboxhat}% \newsavebox{\hlLARGEboxsinglequote}% \newsavebox{\hlLARGEboxbacktick}% \setbox\hlLARGEboxopenbrace=\hbox{\begin{LARGE}\verb.{.\end{LARGE}}% \setbox\hlLARGEboxclosebrace=\hbox{\begin{LARGE}\verb.}.\end{LARGE}}% \setbox\hlLARGEboxlessthan=\hbox{\begin{LARGE}\verb.<.\end{LARGE}}% \setbox\hlLARGEboxdollar=\hbox{\begin{LARGE}\verb.$.\end{LARGE}}% \setbox\hlLARGEboxunderscore=\hbox{\begin{LARGE}\verb._.\end{LARGE}}% \setbox\hlLARGEboxand=\hbox{\begin{LARGE}\verb.&.\end{LARGE}}% \setbox\hlLARGEboxhash=\hbox{\begin{LARGE}\verb.#.\end{LARGE}}% \setbox\hlLARGEboxat=\hbox{\begin{LARGE}\verb.@.\end{LARGE}}% \setbox\hlLARGEboxbackslash=\hbox{\begin{LARGE}\verb.\.\end{LARGE}}% \setbox\hlLARGEboxgreaterthan=\hbox{\begin{LARGE}\verb.>.\end{LARGE}}% \setbox\hlLARGEboxpercent=\hbox{\begin{LARGE}\verb.%.\end{LARGE}}% \setbox\hlLARGEboxhat=\hbox{\begin{LARGE}\verb.^.\end{LARGE}}% \setbox\hlLARGEboxsinglequote=\hbox{\begin{LARGE}\verb.'.\end{LARGE}}% \setbox\hlLARGEboxbacktick=\hbox{\begin{LARGE}\verb.`.\end{LARGE}}% \setbox\hlLARGEboxhat=\hbox{\begin{LARGE}\verb.^.\end{LARGE}}% \newsavebox{\hlhugeboxclosebrace}% \newsavebox{\hlhugeboxopenbrace}% \newsavebox{\hlhugeboxbackslash}% \newsavebox{\hlhugeboxlessthan}% \newsavebox{\hlhugeboxgreaterthan}% \newsavebox{\hlhugeboxdollar}% \newsavebox{\hlhugeboxunderscore}% \newsavebox{\hlhugeboxand}% \newsavebox{\hlhugeboxhash}% \newsavebox{\hlhugeboxat}% \newsavebox{\hlhugeboxpercent}% \newsavebox{\hlhugeboxhat}% \newsavebox{\hlhugeboxsinglequote}% \newsavebox{\hlhugeboxbacktick}% \setbox\hlhugeboxopenbrace=\hbox{\begin{huge}\verb.{.\end{huge}}% \setbox\hlhugeboxclosebrace=\hbox{\begin{huge}\verb.}.\end{huge}}% \setbox\hlhugeboxlessthan=\hbox{\begin{huge}\verb.<.\end{huge}}% \setbox\hlhugeboxdollar=\hbox{\begin{huge}\verb.$.\end{huge}}% \setbox\hlhugeboxunderscore=\hbox{\begin{huge}\verb._.\end{huge}}% \setbox\hlhugeboxand=\hbox{\begin{huge}\verb.&.\end{huge}}% \setbox\hlhugeboxhash=\hbox{\begin{huge}\verb.#.\end{huge}}% \setbox\hlhugeboxat=\hbox{\begin{huge}\verb.@.\end{huge}}% \setbox\hlhugeboxbackslash=\hbox{\begin{huge}\verb.\.\end{huge}}% \setbox\hlhugeboxgreaterthan=\hbox{\begin{huge}\verb.>.\end{huge}}% \setbox\hlhugeboxpercent=\hbox{\begin{huge}\verb.%.\end{huge}}% \setbox\hlhugeboxhat=\hbox{\begin{huge}\verb.^.\end{huge}}% \setbox\hlhugeboxsinglequote=\hbox{\begin{huge}\verb.'.\end{huge}}% \setbox\hlhugeboxbacktick=\hbox{\begin{huge}\verb.`.\end{huge}}% \setbox\hlhugeboxhat=\hbox{\begin{huge}\verb.^.\end{huge}}% \newsavebox{\hlHugeboxclosebrace}% \newsavebox{\hlHugeboxopenbrace}% \newsavebox{\hlHugeboxbackslash}% \newsavebox{\hlHugeboxlessthan}% \newsavebox{\hlHugeboxgreaterthan}% \newsavebox{\hlHugeboxdollar}% \newsavebox{\hlHugeboxunderscore}% \newsavebox{\hlHugeboxand}% \newsavebox{\hlHugeboxhash}% \newsavebox{\hlHugeboxat}% \newsavebox{\hlHugeboxpercent}% \newsavebox{\hlHugeboxhat}% \newsavebox{\hlHugeboxsinglequote}% \newsavebox{\hlHugeboxbacktick}% \setbox\hlHugeboxopenbrace=\hbox{\begin{Huge}\verb.{.\end{Huge}}% \setbox\hlHugeboxclosebrace=\hbox{\begin{Huge}\verb.}.\end{Huge}}% \setbox\hlHugeboxlessthan=\hbox{\begin{Huge}\verb.<.\end{Huge}}% \setbox\hlHugeboxdollar=\hbox{\begin{Huge}\verb.$.\end{Huge}}% \setbox\hlHugeboxunderscore=\hbox{\begin{Huge}\verb._.\end{Huge}}% \setbox\hlHugeboxand=\hbox{\begin{Huge}\verb.&.\end{Huge}}% \setbox\hlHugeboxhash=\hbox{\begin{Huge}\verb.#.\end{Huge}}% \setbox\hlHugeboxat=\hbox{\begin{Huge}\verb.@.\end{Huge}}% \setbox\hlHugeboxbackslash=\hbox{\begin{Huge}\verb.\.\end{Huge}}% \setbox\hlHugeboxgreaterthan=\hbox{\begin{Huge}\verb.>.\end{Huge}}% \setbox\hlHugeboxpercent=\hbox{\begin{Huge}\verb.%.\end{Huge}}% \setbox\hlHugeboxhat=\hbox{\begin{Huge}\verb.^.\end{Huge}}% \setbox\hlHugeboxsinglequote=\hbox{\begin{Huge}\verb.'.\end{Huge}}% \setbox\hlHugeboxbacktick=\hbox{\begin{Huge}\verb.`.\end{Huge}}% \setbox\hlHugeboxhat=\hbox{\begin{Huge}\verb.^.\end{Huge}}% \def\urltilda{\kern -.15em\lower .7ex\hbox{\~{}}\kern .04em}% \newcommand{\hlstd}[1]{\textcolor[rgb]{0,0,0}{#1}}% \newcommand{\hlnum}[1]{\textcolor[rgb]{0.16,0.16,1}{#1}} \newcommand{\hlesc}[1]{\textcolor[rgb]{1,0,1}{#1}} \newcommand{\hlstr}[1]{\textcolor[rgb]{1,0,0}{#1}} \newcommand{\hldstr}[1]{\textcolor[rgb]{0.51,0.51,0}{#1}} \newcommand{\hlslc}[1]{\textcolor[rgb]{0.51,0.51,0.51}{\it{#1}}} \newcommand{\hlcom}[1]{\textcolor[rgb]{0.51,0.51,0.51}{\it{#1}}} \newcommand{\hldir}[1]{\textcolor[rgb]{0,0.51,0}{#1}} \newcommand{\hlsym}[1]{\textcolor[rgb]{0,0,0}{#1}} \newcommand{\hlline}[1]{\textcolor[rgb]{0.33,0.33,0.33}{#1}} \newcommand{\hlkwa}[1]{\textcolor[rgb]{0,0,0}{\bf{#1}}} \newcommand{\hlkwb}[1]{\textcolor[rgb]{0.51,0,0}{#1}} \newcommand{\hlkwc}[1]{\textcolor[rgb]{0,0,0}{\bf{#1}}} \newcommand{\hlkwd}[1]{\textcolor[rgb]{0,0,0.51}{#1}} \usepackage{framed} \makeatletter \newenvironment{kframe}{% \def\FrameCommand##1{\hskip\@totalleftmargin \hskip-\fboxsep \colorbox{shadecolor}{##1}\hskip-\fboxsep % There is no \\@totalrightmargin, so: \hskip-\linewidth \hskip-\@totalleftmargin \hskip\columnwidth}% \MakeFramed {\advance\hsize-\width \@totalleftmargin\z@ \linewidth\hsize \@setminipage}}% {\par\unskip\endMakeFramed} \makeatother \definecolor{shadecolor}{rgb}{.97, .97, .97} \newenvironment{knitrout}{}{} % an empty environment to be redefined in TeX \usepackage[T1]{fontenc} \usepackage[latin9]{inputenc} \usepackage{babel} \begin{document} minimum working example: \begin{knitrout} \definecolor{shadecolor}{rgb}{0.969, 0.969, 0.969}\color{fgcolor}\begin{kframe} \begin{flushleft} \ttfamily\noindent \hlfunctioncall{packageVersion}\hlkeyword{(}\hlstring{"{}knitr"{}}\hlkeyword{)}\mbox{} \normalfont \end{flushleft} \begin{verbatim} ## [1] '0.5' \end{verbatim} \end{kframe} \end{knitrout} \end{document}
This is pdfTeX, Version 3.1415926-2.3-1.40.12 (TeX Live 2011) (format=pdflatex 2012.4.27) 2 JUN 2012 19:10 entering extended mode restricted \write18 enabled. %&-line parsing enabled. **gives_error.tex (./gives_error.tex LaTeX2e <2011/06/27> Babel <v3.8m> and hyphenation patterns for english, dumylang, nohyphenation, ge rman-x-2011-07-01, ngerman-x-2011-07-01, afrikaans, ancientgreek, ibycus, arabi c, armenian, basque, bulgarian, catalan, pinyin, coptic, croatian, czech, danis h, dutch, ukenglish, usenglishmax, esperanto, estonian, ethiopic, farsi, finnis h, french, friulan, galician, german, ngerman, swissgerman, monogreek, greek, h ungarian, icelandic, assamese, bengali, gujarati, hindi, kannada, malayalam, ma rathi, oriya, panjabi, tamil, telugu, indonesian, interlingua, irish, italian, kurmanji, lao, latin, latvian, lithuanian, mongolian, mongolianlmc, bokmal, nyn orsk, polish, portuguese, romanian, romansh, russian, sanskrit, serbian, serbia nc, slovak, slovenian, spanish, swedish, turkish, turkmen, ukrainian, uppersorb ian, welsh, loaded. (/usr/local/texlive/2011/texmf-dist/tex/latex/base/article.cls Document Class: article 2007/10/19 v1.4h Standard LaTeX document class (/usr/local/texlive/2011/texmf-dist/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 ) (/usr/local/texlive/2011/texmf-dist/tex/latex/graphics/graphicx.sty Package: graphicx 1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR) (/usr/local/texlive/2011/texmf-dist/tex/latex/graphics/keyval.sty Package: keyval 1999/03/16 v1.13 key=value parser (DPC) \KV@toks@=\toks14 ) (/usr/local/texlive/2011/texmf-dist/tex/latex/graphics/graphics.sty Package: graphics 2009/02/05 v1.0o Standard LaTeX Graphics (DPC,SPQR) (/usr/local/texlive/2011/texmf-dist/tex/latex/graphics/trig.sty Package: trig 1999/03/16 v1.09 sin cos tan (DPC) ) (/usr/local/texlive/2011/texmf-dist/tex/latex/latexconfig/graphics.cfg File: graphics.cfg 2010/04/23 v1.9 graphics configuration of TeX Live ) Package graphics Info: Driver file: pdftex.def on input line 91. (/usr/local/texlive/2011/texmf-dist/tex/latex/pdftex-def/pdftex.def File: pdftex.def 2011/05/27 v0.06d Graphics/color for pdfTeX (/usr/local/texlive/2011/texmf-dist/tex/generic/oberdiek/infwarerr.sty Package: infwarerr 2010/04/08 v1.3 Providing info/warning/message (HO) ) (/usr/local/texlive/2011/texmf-dist/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 ) (/usr/local/texlive/2011/texmf-dist/tex/latex/graphics/color.sty Package: color 2005/11/14 v1.0j Standard LaTeX Color (DPC) (/usr/local/texlive/2011/texmf-dist/tex/latex/latexconfig/color.cfg File: color.cfg 2007/01/18 v1.5 color configuration of teTeX/TeXLive ) Package color Info: Driver file: pdftex.def on input line 130. ) (/usr/local/texlive/2011/texmf-dist/tex/latex/upquote/upquote.sty Package: upquote 2012/04/19 v1.3 upright-quote and grave-accent glyphs in verba tim ) \hlnormalsizeboxclosebrace=\box26 \hlnormalsizeboxopenbrace=\box27 \hlnormalsizeboxbackslash=\box28 \hlnormalsizeboxlessthan=\box29 \hlnormalsizeboxgreaterthan=\box30 \hlnormalsizeboxdollar=\box31 \hlnormalsizeboxunderscore=\box32 \hlnormalsizeboxand=\box33 \hlnormalsizeboxhash=\box34 \hlnormalsizeboxat=\box35 \hlnormalsizeboxpercent=\box36 \hlnormalsizeboxhat=\box37 \hlnormalsizeboxsinglequote=\box38 \hlnormalsizeboxbacktick=\box39 \hltinyboxclosebrace=\box40 \hltinyboxopenbrace=\box41 \hltinyboxbackslash=\box42 \hltinyboxlessthan=\box43 \hltinyboxgreaterthan=\box44 \hltinyboxdollar=\box45 \hltinyboxunderscore=\box46 \hltinyboxand=\box47 \hltinyboxhash=\box48 \hltinyboxat=\box49 \hltinyboxpercent=\box50 \hltinyboxhat=\box51 \hltinyboxsinglequote=\box52 \hltinyboxbacktick=\box53 \hlscriptsizeboxclosebrace=\box54 \hlscriptsizeboxopenbrace=\box55 \hlscriptsizeboxbackslash=\box56 \hlscriptsizeboxlessthan=\box57 \hlscriptsizeboxgreaterthan=\box58 \hlscriptsizeboxdollar=\box59 \hlscriptsizeboxunderscore=\box60 \hlscriptsizeboxand=\box61 \hlscriptsizeboxhash=\box62 \hlscriptsizeboxat=\box63 \hlscriptsizeboxpercent=\box64 \hlscriptsizeboxhat=\box65 \hlscriptsizeboxsinglequote=\box66 \hlscriptsizeboxbacktick=\box67 \hlfootnotesizeboxclosebrace=\box68 \hlfootnotesizeboxopenbrace=\box69 \hlfootnotesizeboxbackslash=\box70 \hlfootnotesizeboxlessthan=\box71 \hlfootnotesizeboxgreaterthan=\box72 \hlfootnotesizeboxdollar=\box73 \hlfootnotesizeboxunderscore=\box74 \hlfootnotesizeboxand=\box75 \hlfootnotesizeboxhash=\box76 \hlfootnotesizeboxat=\box77 \hlfootnotesizeboxpercent=\box78 \hlfootnotesizeboxhat=\box79 \hlfootnotesizeboxsinglequote=\box80 \hlfootnotesizeboxbacktick=\box81 \hlsmallboxclosebrace=\box82 \hlsmallboxopenbrace=\box83 \hlsmallboxbackslash=\box84 \hlsmallboxlessthan=\box85 \hlsmallboxgreaterthan=\box86 \hlsmallboxdollar=\box87 \hlsmallboxunderscore=\box88 \hlsmallboxand=\box89 \hlsmallboxhash=\box90 \hlsmallboxat=\box91 \hlsmallboxpercent=\box92 \hlsmallboxhat=\box93 \hlsmallboxsinglequote=\box94 \hlsmallboxbacktick=\box95 \hllargeboxclosebrace=\box96 \hllargeboxopenbrace=\box97 \hllargeboxbackslash=\box98 \hllargeboxlessthan=\box99 \hllargeboxgreaterthan=\box100 \hllargeboxdollar=\box101 \hllargeboxunderscore=\box102 \hllargeboxand=\box103 \hllargeboxhash=\box104 \hllargeboxat=\box105 \hllargeboxpercent=\box106 \hllargeboxhat=\box107 \hllargeboxsinglequote=\box108 \hllargeboxbacktick=\box109 \hlLargeboxclosebrace=\box110 \hlLargeboxopenbrace=\box111 \hlLargeboxbackslash=\box112 \hlLargeboxlessthan=\box113 \hlLargeboxgreaterthan=\box114 \hlLargeboxdollar=\box115 \hlLargeboxunderscore=\box116 \hlLargeboxand=\box117 \hlLargeboxhash=\box118 \hlLargeboxat=\box119 \hlLargeboxpercent=\box120 \hlLargeboxhat=\box121 \hlLargeboxsinglequote=\box122 \hlLargeboxbacktick=\box123 \hlLARGEboxclosebrace=\box124 \hlLARGEboxopenbrace=\box125 \hlLARGEboxbackslash=\box126 \hlLARGEboxlessthan=\box127 \hlLARGEboxgreaterthan=\box128 \hlLARGEboxdollar=\box129 \hlLARGEboxunderscore=\box130 \hlLARGEboxand=\box131 \hlLARGEboxhash=\box132 \hlLARGEboxat=\box133 \hlLARGEboxpercent=\box134 \hlLARGEboxhat=\box135 \hlLARGEboxsinglequote=\box136 \hlLARGEboxbacktick=\box137 \hlhugeboxclosebrace=\box138 \hlhugeboxopenbrace=\box139 \hlhugeboxbackslash=\box140 \hlhugeboxlessthan=\box141 \hlhugeboxgreaterthan=\box142 \hlhugeboxdollar=\box143 \hlhugeboxunderscore=\box144 \hlhugeboxand=\box145 \hlhugeboxhash=\box146 \hlhugeboxat=\box147 \hlhugeboxpercent=\box148 \hlhugeboxhat=\box149 \hlhugeboxsinglequote=\box150 \hlhugeboxbacktick=\box151 \hlHugeboxclosebrace=\box152 \hlHugeboxopenbrace=\box153 \hlHugeboxbackslash=\box154 \hlHugeboxlessthan=\box155 \hlHugeboxgreaterthan=\box156 \hlHugeboxdollar=\box157 \hlHugeboxunderscore=\box158 \hlHugeboxand=\box159 \hlHugeboxhash=\box160 \hlHugeboxat=\box161 \hlHugeboxpercent=\box162 \hlHugeboxhat=\box163 \hlHugeboxsinglequote=\box164 \hlHugeboxbacktick=\box165 (/usr/local/texlive/2011/texmf-dist/tex/latex/framed/framed.sty Package: framed 2007/10/04 v 0.95: framed or shaded text with page breaks \fb@frw=\dimen105 \fb@frh=\dimen106 \FrameRule=\dimen107 \FrameSep=\dimen108 ) (/usr/local/texlive/2011/texmf-dist/tex/latex/base/fontenc.sty Package: fontenc 2005/09/27 v1.99g Standard LaTeX package (/usr/local/texlive/2011/texmf-dist/tex/latex/base/t1enc.def File: t1enc.def 2005/09/27 v1.99g Standard LaTeX file LaTeX Font Info: Redeclaring font encoding T1 on input line 43. )) (/usr/local/texlive/2011/texmf-dist/tex/latex/base/inputenc.sty Package: inputenc 2008/03/30 v1.1d Input encoding file \inpenc@prehook=\toks15 \inpenc@posthook=\toks16 (/usr/local/texlive/2011/texmf-dist/tex/latex/base/latin9.def File: latin9.def 2008/03/30 v1.1d Input encoding file )) (/usr/local/texlive/2011/texmf-dist/tex/generic/babel/babel.sty Package: babel 2008/07/08 v3.8m The Babel package (/usr/local/texlive/2011/texmf-dist/tex/generic/babel/english.ldf Language: english 2005/03/30 v3.3o English support from the babel system (/usr/local/texlive/2011/texmf-dist/tex/generic/babel/babel.def File: babel.def 2008/07/08 v3.8m Babel common definitions \babel@savecnt=\count88 \U@D=\dimen109 ) \l@canadian = a dialect from \language\l@american \l@australian = a dialect from \language\l@british \l@newzealand = a dialect from \language\l@british )) No file gives_error.aux. \openout1 = `gives_error.aux'. LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 392. LaTeX Font Info: ... okay on input line 392. LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 392. LaTeX Font Info: ... okay on input line 392. LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 392. LaTeX Font Info: ... okay on input line 392. LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 392. LaTeX Font Info: ... okay on input line 392. LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 392. LaTeX Font Info: ... okay on input line 392. LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 392. LaTeX Font Info: ... okay on input line 392. (/usr/local/texlive/2011/texmf-dist/tex/context/base/supp-pdf.mkii [Loading MPS to PDF converter (version 2006.09.02).] \scratchcounter=\count89 \scratchdimen=\dimen110 \scratchbox=\box166 \nofMPsegments=\count90 \nofMParguments=\count91 \everyMPshowfont=\toks17 \MPscratchCnt=\count92 \MPscratchDim=\dimen111 \MPnumerator=\count93 \makeMPintoPDFobject=\count94 \everyMPtoPDFconversion=\toks18 ) (/usr/local/texlive/2011/texmf-dist/tex/generic/oberdiek/pdftexcmds.sty Package: pdftexcmds 2011/04/22 v0.16 Utilities of pdfTeX for LuaTeX (HO) (/usr/local/texlive/2011/texmf-dist/tex/generic/oberdiek/ifluatex.sty Package: ifluatex 2010/03/01 v1.3 Provides the ifluatex switch (HO) Package ifluatex Info: LuaTeX not detected. ) (/usr/local/texlive/2011/texmf-dist/tex/generic/oberdiek/ifpdf.sty Package: ifpdf 2011/01/30 v2.3 Provides the ifpdf switch (HO) Package ifpdf Info: pdfTeX in PDF mode is detected. ) Package pdftexcmds Info: LuaTeX not detected. Package pdftexcmds Info: \pdf@primitive is available. Package pdftexcmds Info: \pdf@ifprimitive is available. Package pdftexcmds Info: \pdfdraftmode found. ) (/usr/local/texlive/2011/texmf-dist/tex/latex/oberdiek/epstopdf-base.sty Package: epstopdf-base 2010/02/09 v2.5 Base part for package epstopdf (/usr/local/texlive/2011/texmf-dist/tex/latex/oberdiek/grfext.sty Package: grfext 2010/08/19 v1.1 Managing graphics extensions (HO) (/usr/local/texlive/2011/texmf-dist/tex/generic/oberdiek/kvdefinekeys.sty Package: kvdefinekeys 2011/04/07 v1.3 Defining keys (HO) )) (/usr/local/texlive/2011/texmf-dist/tex/latex/oberdiek/kvoptions.sty Package: kvoptions 2010/12/23 v3.10 Keyval support for LaTeX options (HO) (/usr/local/texlive/2011/texmf-dist/tex/generic/oberdiek/kvsetkeys.sty Package: kvsetkeys 2011/04/07 v1.13 Key value parser (HO) (/usr/local/texlive/2011/texmf-dist/tex/generic/oberdiek/etexcmds.sty Package: etexcmds 2011/02/16 v1.5 Prefix for e-TeX command names (HO) Package etexcmds Info: Could not find \expanded. (etexcmds) That can mean that you are not using pdfTeX 1.50 or (etexcmds) that some package has redefined \expanded. (etexcmds) In the latter case, load this package earlier. ))) Package grfext Info: Graphics extension search list: (grfext) [.png,.pdf,.jpg,.mps,.jpeg,.jbig2,.jb2,.PNG,.PDF,.JPG,.JPE G,.JBIG2,.JB2,.eps] (grfext) \AppendGraphicsExtensions on input line 452. (/usr/local/texlive/2011/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg File: epstopdf-sys.cfg 2010/07/13 v1.3 Configuration of (r)epstopdf for TeX Liv e )) Package color Info: Redefining color shadecolor on input line 397. LaTeX Font Info: Try loading font information for T1+cmtt on input line 399. (/usr/local/texlive/2011/texmf-dist/tex/latex/base/t1cmtt.fd File: t1cmtt.fd 1999/05/25 v2.5h Standard LaTeX font definitions ) LaTeX Font Info: Font shape `T1/cmtt/bx/n' in size <10> not available (Font) Font shape `T1/cmtt/m/n' tried instead on input line 400. ! Undefined control sequence. <argument> ^^M## [1] ' 0.5'^^M l.405 \end{verbatim} The control sequence at the end of the top line of your error message was never \def'ed. If you have misspelled it (e.g., `\hobx'), type `I' and the correct spelling (e.g., `I\hbox'). Otherwise just continue, and I'll forget about whatever was undefined. ! Undefined control sequence. <argument> ^^M## [1] '0.5' ^^M l.405 \end{verbatim} The control sequence at the end of the top line of your error message was never \def'ed. If you have misspelled it (e.g., `\hobx'), type `I' and the correct spelling (e.g., `I\hbox'). Otherwise just continue, and I'll forget about whatever was undefined. [1 {/usr/local/texlive/2011/texmf-var/fonts/map/pdftex/updmap/pdftex.map}] (./give s_error.aux) ) Here is how much of TeX's memory you used: 2293 strings out of 493610 31932 string characters out of 3142425 86288 words of memory out of 3000000 5578 multiletter control sequences out of 15000+200000 8491 words of font info for 33 fonts, out of 3000000 for 9000 831 hyphenation exceptions out of 8191 38i,5n,23p,273b,175s stack positions out of 5000i,500n,10000p,200000b,50000s {/usr/local/texlive/2011/texmf-dist/fonts/enc/dvips/cm-super/cm-s uper-t1.enc}</usr/local/texlive/2011/texmf-dist/fonts/type1/public/cm-super/sfr m1000.pfb></usr/local/texlive/2011/texmf-dist/fonts/type1/public/cm-super/sftt1 000.pfb> Output written on gives_error.pdf (1 page, 35712 bytes). PDF statistics: 17 PDF objects out of 1000 (max. 8388607) 11 compressed objects within 1 object stream 0 named destinations out of 1000 (max. 500000) 1 words of extra memory for PDF output out of 10000 (max. 10000000)
gives_error.20.lyx
Description: gives_error.20.lyx