Error(s) in re-building vignettes:
--- re-building ‘tikzDevice.Rnw’ using knitr
Error: processing vignette 'tikzDevice.Rnw' failed with diagnostics:
Running 'texi2dvi' on 'tikzDevice.tex' failed.
LaTeX errors:
! Parameters must be numbered consecutively.
<to be read again> 
                   ##
l.78 \begin{document}
                     
! Parameters must be numbered consecutively.
<to be read again> 
                   1
l.78 \begin{document}
                     
! Parameters must be numbered consecutively.
<to be read again> 
                   ##
l.78 \begin{document}
                     
! Parameters must be numbered consecutively.
<to be read again> 
                   2
l.78 \begin{document}
                     
! Parameters must be numbered consecutively.
<to be read again> 
                   ##
l.78 \begin{document}
                     
! Parameters must be numbered consecutively.
<to be read again> 
                   3
l.78 \begin{document}
                     
! Parameters must be numbered consecutively.
<to be read again> 
                   ##
l.78 \begin{document}
                     
! Parameters must be numbered consecutively.
<to be read again> 
                   4
l.78 \begin{document}
                     
! Parameters must be numbered consecutively.
<to be read again> 
                   ##
l.78 \begin{document}
                     
! You already have nine parameters.
<argument> ...ef \M@sect ####1####2####3####4####5
                                                  ####6[####7][####8]####9{\...
l.78 \begin{document}
                     
! You already have nine parameters.
<argument> ...M@sect ####1####2####3####4####5####
                                                  6[####7][####8]####9{\setc...
l.78 \begin{document}
                     
! You already have nine parameters.
<argument> ... ####1####2####3####4####5####6[####
                                                  7][####8]####9{\setcounter...
l.78 \begin{document}
                     
! You already have nine parameters.
<argument> ...###2####3####4####5####6[####7][####
                                                  8]####9{\setcounter {secti...
l.78 \begin{document}
                     
! You already have nine parameters.
<argument> ...##3####4####5####6[####7][####8]####
                                                  9{\setcounter {section@lev...
l.78 \begin{document}
                     
! Parameters must be numbered consecutively.
<to be read again> 
                   ##
l.78 \begin{document}
                     
! Parameters must be numbered consecutively.
<to be read again> 
                   1
l.78 \begin{document}
                     
! Parameters must be numbered consecutively.
<to be read again> 
                   ##
l.78 \begin{document}
                     
! Parameters must be numbered consecutively.
<to be read again> 
                   1
l.78 \begin{document}
                     
! Parameters must be numbered consecutively.
<to be read again> 
                   ##
l.78 \begin{document}
                     
! Parameters must be numbered consecutively.
<to be read again> 
                   2
l.78 \begin{document}
                     
! Parameters must be numbered consecutively.
<to be read again> 
                   ##
l.78 \begin{document}
                     
! Parameters must be numbered consecutively.
<to be read again> 
                   3
l.78 \begin{document}
                     
! File ended while scanning use of \@tempf.
<inserted text> 
                \par 
<*> \nonstopmode \input ./tikzDevice.tex 
                                         \input ./tikzDevice.tex \input ./ti...
! LaTeX Error: Can be used only in preamble.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
! LaTeX Error: Can be used only in preamble.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
! LaTeX Error: Can be used only in preamble.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
! LaTeX Error: Command \hlnum already defined.
               Or name \end... illegal, see p.192 of the manual.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
! LaTeX Error: Command \hlstr already defined.
               Or name \end... illegal, see p.192 of the manual.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
! LaTeX Error: Command \hlcom already defined.
               Or name \end... illegal, see p.192 of the manual.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
! LaTeX Error: Command \hlopt already defined.
               Or name \end... illegal, see p.192 of the manual.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
! LaTeX Error: Command \hlstd already defined.
               Or name \end... illegal, see p.192 of the manual.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
! LaTeX Error: Command \hlkwa already defined.
               Or name \end... illegal, see p.192 of the manual.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
! LaTeX Error: Command \hlkwb already defined.
               Or name \end... illegal, see p.192 of the manual.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
! LaTeX Error: Command \hlkwc already defined.
               Or name \end... illegal, see p.192 of the manual.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
! LaTeX Error: Command \hlkwd already defined.
               Or name \end... illegal, see p.192 of the manual.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
! LaTeX Error: Can be used only in preamble.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
! LaTeX Error: Command \kframe already defined.
               Or name \end... illegal, see p.192 of the manual.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
! LaTeX Error: Command \knitrout already defined.
               Or name \end... illegal, see p.192 of the manual.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
! LaTeX Error: Can be used only in preamble.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
! LaTeX Error: Can be used only in preamble.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
! LaTeX Error: Can be used only in preamble.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
! LaTeX Error: Can be used only in preamble.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
! LaTeX Error: Can be used only in preamble.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
! LaTeX Error: Not in outer par mode.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
! File ended while scanning use of \@tempf.
<inserted text> 
                \par 
<*> ...t ./tikzDevice.tex \input ./tikzDevice.tex 
                                                  \input ./tikzDevice.tex
! LaTeX Error: Can be used only in preamble.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
! LaTeX Error: Can be used only in preamble.

--- failed re-building ‘tikzDevice.Rnw’

SUMMARY: processing the following file failed:
  ‘tikzDevice.Rnw’

Error: Vignette re-building failed.
Execution halted