Error(s) in re-building vignettes:
  ...
--- re-building ‘glrnb.Rnw’ using Sweave
Loading required package: sp
Loading required package: xtable
This is surveillance 1.17.1. For overview type ‘help(surveillance)’.
glrnb: Fitting Poisson model because alpha == 0
glrnb: Fitting Poisson model because alpha == 0
glrnb: Fitting glm.nb model with alpha=0.225966923076071
glrnb: Fitting glm.nb model with alpha=0.225966923076071
glrnb: Fitting glm.nb model with alpha=0.225966923076071
glrnb: Fitting glm.nb model with alpha=0.225966923076071
glrnb: Fitting glm.nb model with alpha=0.225966923076071
glrnb: Fitting glm.nb model with alpha=0.225966923076071
glrnb: Fitting Poisson model because alpha == 0
glrnb: Fitting Poisson model because alpha == 0
glrnb: Fitting Poisson model because alpha == 0
glrnb: Fitting Poisson model because alpha == 0
glrnb: Fitting Poisson model because alpha == 0
glrnb: Fitting Poisson model because alpha == 0
glrnb: Fitting Poisson model because alpha == 0
glrnb: Fitting Poisson model because alpha == 0
glrnb: Fitting Poisson model because alpha == 0
glrnb: Fitting Poisson model because alpha == 0
glrnb: Fitting Poisson model because alpha == 0
glrnb: Fitting Poisson model because alpha == 0
glrnb: Fitting Poisson model because alpha == 0
glrnb: Fitting Poisson model because alpha == 0
glrnb: Fitting Poisson model because alpha == 0
glrnb: Fitting Poisson model because alpha == 0
glrnb: Fitting Poisson model because alpha == 0
glrnb: Fitting Poisson model because alpha == 0
Error: processing vignette 'glrnb.Rnw' failed with diagnostics:
Running 'texi2dvi' on 'glrnb.tex' failed.
LaTeX errors:
! Paragraph ended before \@tempa was complete.
<to be read again> 
                   \par 
l.90 
     
! Paragraph ended before \@tempa was complete.
<to be read again> 
                   \par 
l.108 
      
! Paragraph ended before \@tempa was complete.
<to be read again> 
                   \par 
l.146 
      
! Paragraph ended before \@tempa was complete.
<to be read again> 
                   \par 
l.235 
      
! Paragraph ended before \@tempa was complete.
<to be read again> 
                   \par 
l.415 
      
! Paragraph ended before \@tempa was complete.
<to be read again> 
                   \par 
l.431 
      
! LaTeX Error: \begin{itemize} on input line 172 ended by \end{document}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
--- failed re-building ‘glrnb.Rnw’

--- re-building ‘hhh4.Rnw’ using Sweave
Loading required package: sp
Loading required package: xtable
This is surveillance 1.17.1. For overview type ‘help(surveillance)’.
Doing computations: FALSE
Error: processing vignette 'hhh4.Rnw' failed with diagnostics:
Running 'texi2dvi' on 'hhh4.tex' failed.
LaTeX errors:
! Paragraph ended before \@tempa was complete.
<to be read again> 
                   \par 
l.220 
      
! Paragraph ended before \@tempa was complete.
<to be read again> 
                   \par 
l.253 
      
! Paragraph ended before \@tempa was complete.
<to be read again> 
                   \par 
l.289 
      
! Paragraph ended before \@tempa was complete.
<to be read again> 
                   \par 
l.318 
      
! Paragraph ended before \@tempa was complete.
<to be read again> 
                   \par 
l.605 
      
! Paragraph ended before \@tempa was complete.
<to be read again> 
                   \par 
l.702 
      
! LaTeX Error: \begin{center} on input line 693 ended by \end{document}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
--- failed re-building ‘hhh4.Rnw’

--- re-building ‘monitoringCounts.Rnw’ using Sweave
Loading required package: sp
Loading required package: xtable
This is surveillance 1.17.1. For overview type ‘help(surveillance)’.
Loading required package: splines
Loading required package: gamlss.data

Attaching package: ‘gamlss.data’

The following object is masked from ‘package:datasets’:

    sleep

Loading required package: gamlss.dist
Loading required package: MASS
Loading required package: nlme
Loading required package: parallel
 **********   GAMLSS Version 5.1-5  ********** 
For more on GAMLSS look at http://www.gamlss.org/
Type gamlssNews() to see new features/changes/bug fixes.

Warning in model.matrix.default(mt, mf, contrasts) :
  non-list contrasts argument ignored
Warning in model.matrix.default(mt, mf, contrasts) :
  non-list contrasts argument ignored
Error: processing vignette 'monitoringCounts.Rnw' failed with diagnostics:
Running 'texi2dvi' on 'monitoringCounts.tex' failed.
LaTeX errors:
! Paragraph ended before \@tempa was complete.
<to be read again> 
                   \par 
l.163 
      
! Paragraph ended before \@tempa was complete.
<to be read again> 
                   \par 
l.183 }
       \hspace{-3em}%
! Extra }, or forgotten \endgroup.
\sf@@@subfloat ...de \setbox \@tempboxa \hbox {#4}
                                                  \@tempdima =\wd \@tempboxa...
l.183 }
       \hspace{-3em}%
! Paragraph ended before \@tempa was complete.
<to be read again> 
                   \par 
l.188 }
       
! Extra }, or forgotten \endgroup.
\sf@@@subfloat ...de \setbox \@tempboxa \hbox {#4}
                                                  \@tempdima =\wd \@tempboxa...
l.188 }
       
! You can't use `\hrule' here except with leaders.
\caption@hrule ->\hrule 
                        \@height \z@ 
l.190 ...deral states (a) Bavaria and (b) Berlin.}
                                                  
! Missing number, treated as zero.
<to be read again> 
                   \vskip 
l.190 ...deral states (a) Bavaria and (b) Berlin.}
                                                  
! Illegal unit of measure (pt inserted).
<to be read again> 
                   \vskip 
l.190 ...deral states (a) Bavaria and (b) Berlin.}
                                                  
! Missing \endgroup inserted.
<inserted text> 
                \endgroup 
l.190 ...deral states (a) Bavaria and (b) Berlin.}
                                                  
! Missing \endgroup inserted.
<inserted text> 
                \endgroup 
l.190 ...deral states (a) Bavaria and (b) Berlin.}
                                                  
! Missing } inserted.
<inserted text> 
                }
l.190 ...deral states (a) Bavaria and (b) Berlin.}
                                                  
! Missing \endgroup inserted.
<inserted text> 
                \endgroup 
l.190 ...deral states (a) Bavaria and (b) Berlin.}
                                                  
! Missing \endgroup inserted.
<inserted text> 
                \endgroup 
l.190 ...deral states (a) Bavaria and (b) Berlin.}
                                                  
! Missing } inserted.
<inserted text> 
                }
l.190 ...deral states (a) Bavaria and (b) Berlin.}
                                                  
! LaTeX Error: Not in outer par mode.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
! Paragraph ended before \@tempa was complete.
<to be read again> 
                   \par 
l.265 
      
! LaTeX Error: Not in outer par mode.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
! Argument of \@tempa has an extra }.
<inserted text> 
                \par 
l.331 }
       
! Paragraph ended before \@tempa was complete.
<to be read again> 
                   \par 
l.331 }
       
! Extra }, or forgotten \endgroup.
<recently read> }
                 
l.331 }
       
! Argument of \@tempa has an extra }.
<inserted text> 
                \par 
l.335 }
       
! Paragraph ended before \@tempa was complete.
<to be read again> 
                   \par 
l.335 }
       
! Extra }, or forgotten \endgroup.
<recently read> }
                 
l.335 }
       
! You can't use `\hrule' here except with leaders.
\caption@hrule ->\hrule 
                        \@height \z@ 
l.341 have the same length up to rounding.}
                                           
! Missing number, treated as zero.
<to be read again> 
                   \vskip 
l.341 have the same length up to rounding.}
                                           
! Illegal unit of measure (pt inserted).
<to be read again> 
                   \vskip 
l.341 have the same length up to rounding.}
                                           
! Missing \endgroup inserted.
<inserted text> 
                \endgroup 
l.341 have the same length up to rounding.}
                                           
! Missing \endgroup inserted.
<inserted text> 
                \endgroup 
l.341 have the same length up to rounding.}
                                           
! Missing } inserted.
<inserted text> 
                }
l.341 have the same length up to rounding.}
                                           
! Missing \endgroup inserted.
<inserted text> 
                \endgroup 
l.341 have the same length up to rounding.}
                                           
! Missing \endgroup inserted.
<inserted text> 
                \endgroup 
l.341 have the same length up to rounding.}
                                           
! Missing } inserted.
<inserted text> 
                }
l.341 have the same length up to rounding.}
                                           
! LaTeX Error: Not in outer par mode.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
! Paragraph ended before \@tempa was complete.
<to be read again> 
                   \par 
l.404 }
       
! Extra }, or forgotten \endgroup.
\sf@@@subfloat ...de \setbox \@tempboxa \hbox {#4}
                                                  \@tempdima =\wd \@tempboxa...
l.404 }
       
! Paragraph ended before \@tempa was complete.
<to be read again> 
                   \par 
l.410 }
       
! Extra }, or forgotten \endgroup.
\sf@@@subfloat ...de \setbox \@tempboxa \hbox {#4}
                                                  \@tempdima =\wd \@tempboxa...
l.410 }
       
! You can't use `\hrule' here except with leaders.
\caption@hrule ->\hrule 
                        \@height \z@ 
l.414 ...d method instead of the original method.}
                                                  
! Missing number, treated as zero.
<to be read again> 
                   \vskip 
l.414 ...d method instead of the original method.}
                                                  
! Illegal unit of measure (pt inserted).
<to be read again> 
                   \vskip 
l.414 ...d method instead of the original method.}
                                                  
! Missing \endgroup inserted.
<inserted text> 
                \endgroup 
l.414 ...d method instead of the original method.}
                                                  
! Missing \endgroup inserted.
<inserted text> 
                \endgroup 
l.414 ...d method instead of the original method.}
                                                  
! Missing } inserted.
<inserted text> 
                }
l.414 ...d method instead of the original method.}
                                                  
! Missing \endgroup inserted.
<inserted text> 
                \endgroup 
l.414 ...d method instead of the original method.}
                                                  
! Missing \endgroup inserted.
<inserted text> 
                \endgroup 
l.414 ...d method instead of the original method.}
                                                  
! Missing } inserted.
<inserted text> 
                }
l.414 ...d method instead of the original method.}
                                                  
! LaTeX Error: Not in outer par mode.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
! Paragraph ended before \@tempa was complete.
<to be read again> 
                   \par 
l.470 
      
! Paragraph ended before \@tempa was complete.
<to be read again> 
                   \par 
l.583 
      
! LaTeX Error: Not in outer par mode.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
! Paragraph ended before \@tempa was complete.
<to be read again> 
                   \par 
l.598 
      
! LaTeX Error: Not in outer par mode.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
! Paragra
--- failed re-building ‘monitoringCounts.Rnw’

--- re-building ‘surveillance.Rnw’ using Sweave
Loading required package: sp
Loading required package: xtable
This is surveillance 1.17.1. For overview type ‘help(surveillance)’.
Doing computations: FALSE
Error: processing vignette 'surveillance.Rnw' failed with diagnostics:
Running 'texi2dvi' on 'surveillance.tex' failed.
LaTeX errors:
! Paragraph ended before \@tempa was complete.
<to be read again> 
                   \par 
l.146 
      
! Paragraph ended before \@tempa was complete.
<to be read again> 
                   \par 
l.161 
      
! Paragraph ended before \@tempa was complete.
<to be read again> 
                   \par 
l.218 
      
! Paragraph ended before \@tempa was complete.
<to be read again> 
                   \par 
l.317 
      
! Paragraph ended before \@tempa was complete.
<to be read again> 
                   \par 
l.354 
      
! LaTeX Error: Not in outer par mode.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
! Paragraph ended before \@tempa was complete.
<to be read again> 
                   \par 
l.570 
      
! Paragraph ended before \@tempa was complete.
<to be read again> 
                   \par 
l.582 
      
! Paragraph ended before \@tempa was complete.
<to be read again> 
                   \par 
l.595 
      
! LaTeX Error: \begin{figure} on input line 563 ended by \end{document}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
! You can't use `\end' in internal vertical mode.
\enddocument ...es \z@ \Call@AtVeryVeryEnd \@@end 
                                                  
l.743 \end{document}
                    
! LaTeX Error: \begin{figure} on input line 563 ended by \end{document}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
! Emergency stop.
<*> \nonstopmode \input ./surveillance.tex
                                          
*** (job aborted, no legal \end found)

!  ==> Fatal error occurred, no output PDF file produced!
--- failed re-building ‘surveillance.Rnw’

--- re-building ‘hhh4_spacetime.Rnw’ using knitr
Loading required package: sp
Loading required package: xtable
This is surveillance 1.17.1. For overview type 'help(surveillance)'.
Doing computations: FALSE
Loading required namespace: spdep
Note: range of maximum neighbour order by region is 3-5
Error: processing vignette 'hhh4_spacetime.Rnw' failed with diagnostics:
Running 'texi2dvi' on 'hhh4_spacetime.tex' failed.
LaTeX errors:
! Argument of \@tempa has an extra }.
<inserted text> 
                \par 
l.292 ...plots/hhh4_spacetime-measlesWeserEms-1} }
                                                  \subfloat[Disease incidenc...
! Paragraph ended before \@tempa was complete.
<to be read again> 
                   \par 
l.292 ...plots/hhh4_spacetime-measlesWeserEms-1} }
                                                  \subfloat[Disease incidenc...
! Extra }, or forgotten \endgroup.
<recently read> }
                 
l.292 ...plots/hhh4_spacetime-measlesWeserEms-1} }
                                                  \subfloat[Disease incidenc...
! Argument of \@tempa has an extra }.
<inserted text> 
                \par 
l.292 ...plots/hhh4_spacetime-measlesWeserEms-2} }
                                                  
! Paragraph ended before \@tempa was complete.
<to be read again> 
                   \par 
l.292 ...plots/hhh4_spacetime-measlesWeserEms-2} }
                                                  
! Extra }, or forgotten \endgroup.
<recently read> }
                 
l.292 ...plots/hhh4_spacetime-measlesWeserEms-2} }
                                                  
! Extra }, or forgotten \endgroup.
l.294 }
       
I've deleted a group-closing symbol because it seems to be
spurious, as in `$x}$'. But perhaps the } is legitimate and
! You can't use `\hrule' here except with leaders.
\caption@hrule ->\hrule 
                        \@height \z@ 
l.296 ...ons in the Weser-Ems region, 2001--2002.}
                                                  \label{fig:measlesWeserEms}
! Missing number, treated as zero.
<to be read again> 
                   \vskip 
l.296 ...ons in the Weser-Ems region, 2001--2002.}
                                                  \label{fig:measlesWeserEms}
! Illegal unit of measure (pt inserted).
<to be read again> 
                   \vskip 
l.296 ...ons in the Weser-Ems region, 2001--2002.}
                                                  \label{fig:measlesWeserEms}
! Missing \endgroup inserted.
<inserted text> 
                \endgroup 
l.296 ...ons in the Weser-Ems region, 2001--2002.}
                                                  \label{fig:measlesWeserEms}
! Missing \endgroup inserted.
<inserted text> 
                \endgroup 
l.296 ...ons in the Weser-Ems region, 2001--2002.}
                                                  \label{fig:measlesWeserEms}
! Missing \endgroup inserted.
<inserted text> 
                \endgroup 
l.296 ...ons in the Weser-Ems region, 2001--2002.}
                                                  \label{fig:measlesWeserEms}
! Missing } inserted.
<inserted text> 
                }
l.296 ...ons in the Weser-Ems region, 2001--2002.}
                                                  \label{fig:measlesWeserEms}
! Missing \endgroup inserted.
<inserted text> 
                \endgroup 
l.296 ...ons in the Weser-Ems region, 2001--2002.}
                                                  \label{fig:measlesWeserEms}
! Missing \endgroup inserted.
<inserted text> 
                \endgroup 
l.296 ...ons in the Weser-Ems region, 2001--2002.}
                                                  \label{fig:measlesWeserEms}
! Missing } inserted.
<inserted text> 
                }
l.296 ...ons in the Weser-Ems region, 2001--2002.}
                                                  \label{fig:measlesWeserEms}
! Missing } inserted.
<inserted text> 
                }
l.296 ...ons in the Weser-Ems region, 2001--2002.}
                                                  \label{fig:measlesWeserEms}
! Missing } inserted.
<inserted text> 
                }
l.296 ...ons in the Weser-Ems region, 2001--2002.}
                                                  \label{fig:measlesWeserEms}
! Extra }, or forgotten \endgroup.
\color@endbox ->\color@endgroup \egroup 
                                        
l.297 \end{figure}
                  
! LaTeX Error: \begin{Schunk} on input line 281 ended by \end{figure}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
! LaTeX Error: \begin{document} ended by \end{Schunk}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
! Extra \endgroup.
<recently read> \endgroup 
                          
l.298 \end{Schunk}
                  
! Paragraph ended before \@tempa was complete.
<to be read again> 
                   \par 
l.318 
      
! Extra }, or forgotten \endgroup.
l.319 }
       
I've deleted a group-closing symbol because it seems to be
spurious, as in `$x}$'. But perhaps the } is legitimate and
! Extra }, or forgotten \endgroup.
\@endfloatbox ...pagefalse \outer@nobreak \egroup 
                                                  \color@endbox 
l.322 \end{figure}
                  
! Extra }, or forgotten \endgroup.
\color@endbox ->\color@endgroup \egroup 
                                        
l.322 \end{figure}
                  
! LaTeX Error: \begin{figure} on input line 315 ended by \end{Schunk}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
! Missing } inserted.
<inserted text> 
                }
l.323 \end{Schunk}
                  
! Missing } inserted.
<inserted text> 
                }
l.323 \end{Schunk}
                  
! LaTeX Error: Not in outer par mode.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
! Paragraph ended before \@tempa was complete.
<to be read again> 
                   \par 
l.469 
      
! Extra }, or forgotten \endgroup.
l.470 }
       
I've deleted a group-closing symbol because it seems to be
spurious, as in `$x}$'. But perhaps the } is legitimate and
! Extra }, or forgotten \endgroup.
\@endfloatbox ...pagefalse \outer@nobreak \egroup 
                                                  \color@endbox 
l.473 \end{figure}
                  
! Extra }, or forgotten \endgroup.
\color@endbox ->\color@endgroup \egroup 
                                        
l.473 \end{figure}
                  
! LaTeX Error: \begin{figure} on input line 466 ended by \end{Schunk}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
! Missing } inserted.
<inserted text> 
                }
l.474 \end{Schunk}
                  
! Missing } inserted.
<inserted text> 
                }
l.474 \end{Schunk}
                  
! LaTeX Error: Not in outer par mode.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
! Paragraph ended before \@tempa was complete.
<to be read again> 
                   \par 
l.505 
      
! Extra }, or forgotten \endgroup.
l.506 }
       
I've deleted a group-closing symbol because it seems to be
spurious, as in `$x}$'. But perhaps the } is legitimate and
! Extra }, or forgotten \endgroup.
\@endfloatbox ...pagefalse \outer@nobreak \egroup 
                                                  \color@endbox 
l.509 \end{figure}
                  
! Extra }, or forgotten \endgroup.
\color@endbox ->\color@endgroup \egroup 
                                        
l.509 \end{figure}
                  
! LaTeX Error: \begin{figure} on input line 502 ended by \end{Schunk}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
! Missing } inserted.
<inserted text> 
                }
l.510 \end{Schunk}
                  
! Missing } inserted.
<inserted text> 
                }
l.510 \end{Schunk}
                  
! LaTeX Error: Not in outer par mode.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
! LaTeX Error: Not in
--- failed re-building ‘hhh4_spacetime.Rnw’

--- re-building ‘twinSIR.Rnw’ using knitr
Loading required package: sp
Loading required package: xtable
This is surveillance 1.17.1. For overview type 'help(surveillance)'.
Doing computations: FALSE
Warning in `[.epidata`(x, seq_len(n), , drop = FALSE) :
  dropped class "epidata": subsetting blocks not allowed
Initialized 1 log-baseline interval:  0.00 92.55
Initial parameter vector:  1 1 1 1 0
Computing OSAIC weights for 4 epidemic covariates based on 1000 simulations ...
Initialized 1 log-baseline interval:  0.00 92.55
Initial parameter vector:  1 1 1 1 1 1 0
Computing OSAIC weights for 4 epidemic covariates based on 1000 simulations ...
Error: processing vignette 'twinSIR.Rnw' failed with diagnostics:
Running 'texi2dvi' on 'twinSIR.tex' failed.
LaTeX errors:
! Paragraph ended before \@tempa was complete.
<to be read again> 
                   \par 
l.368 
      
! Extra }, or forgotten \endgroup.
l.369 }
       
I've deleted a group-closing symbol because it seems to be
spurious, as in `$x}$'. But perhaps the } is legitimate and
! Extra }, or forgotten \endgroup.
\@endfloatbox ...pagefalse \outer@nobreak \egroup 
                                                  \color@endbox 
l.372 \end{figure}
                  
! Extra }, or forgotten \endgroup.
\color@endbox ->\color@endgroup \egroup 
                                        
l.372 \end{figure}
                  
! LaTeX Error: \begin{figure} on input line 365 ended by \end{Schunk}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
! Missing } inserted.
<inserted text> 
                }
l.373 \end{Schunk}
                  
! Missing } inserted.
<inserted text> 
                }
l.373 \end{Schunk}
                  
! LaTeX Error: Not in outer par mode.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
! Paragraph ended before \@tempa was complete.
<to be read again> 
                   \par 
l.386 
      
! Extra }, or forgotten \endgroup.
l.387 }
       
I've deleted a group-closing symbol because it seems to be
spurious, as in `$x}$'. But perhaps the } is legitimate and
! Extra }, or forgotten \endgroup.
\@endfloatbox ...pagefalse \outer@nobreak \egroup 
                                                  \color@endbox 
l.390 \end{figure}
                  
! Extra }, or forgotten \endgroup.
\color@endbox ->\color@endgroup \egroup 
                                        
l.390 \end{figure}
                  
! LaTeX Error: \begin{figure} on input line 383 ended by \end{Schunk}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
! Missing } inserted.
<inserted text> 
                }
l.391 \end{Schunk}
                  
! Missing } inserted.
<inserted text> 
                }
l.391 \end{Schunk}
                  
! LaTeX Error: Not in outer par mode.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
! Paragraph ended before \@tempa was complete.
<to be read again> 
                   \par 
l.523 
      
! Extra }, or forgotten \endgroup.
l.524 }
       
I've deleted a group-closing symbol because it seems to be
spurious, as in `$x}$'. But perhaps the } is legitimate and
! Extra }, or forgotten \endgroup.
\@endfloatbox ...pagefalse \outer@nobreak \egroup 
                                                  \color@endbox 
l.527 \end{figure}
                  
! Extra }, or forgotten \endgroup.
\color@endbox ->\color@endgroup \egroup 
                                        
l.527 \end{figure}
                  
! LaTeX Error: \begin{figure} on input line 520 ended by \end{Schunk}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
! Missing } inserted.
<inserted text> 
                }
l.528 \end{Schunk}
                  
! Missing } inserted.
<inserted text> 
                }
l.528 \end{Schunk}
                  
! LaTeX Error: Not in outer par mode.

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.
 ...                                              
! Argument of \@tempa has an extra }.
<inserted text> 
                \par 
l.574 ...dth]{plots/twinSIR-hagellochFit_plot-1} }
                                                  \subfloat[Transformed resi...
! Paragraph ended before \@tempa was complete.
<to be read again> 
                   \par 
l.574 ...dth]{plots/twinSIR-hagellochFit_plot-1} }
                                                  \subfloat[Transformed resi...
! Extra }, or forgotten \endgroup.
<recently read> }
                 
l.574 ...dth]{plots/twinSIR-hagellochFit_plot-1} }
                                                  \subfloat[Transformed resi...
! Argument of \@tempa has an extra }.
<inserted text> 
                \par 
l.574 ...dth]{plots/twinSIR-hagellochFit_plot-2} }
                                                  
! Paragraph ended before \@tempa was complete.
<to be read again> 
                   \par 
l.574 ...dth]{plots/twinSIR-hagellochFit_plot-2} }
                                                  
! Extra }, or forgotten \endgroup.
<recently read> }
                 
l.574 ...dth]{plots/twinSIR-hagellochFit_plot-2} }
                                                  
! Extra }, or forgotten \endgroup.
l.576 }
       
I've deleted a group-closing symbol because it seems to be
spurious, as in `$x}$'. But perhaps the } is legitimate and
! You can't use `\hrule' here except with leaders.
\caption@hrule ->\hrule 
                        \@height \z@ 
l.578 ...in Equation~\ref{eqn:twinSIR:hagelloch}.}
                                                  \label{fig:hagellochFit_plot}
! Missing number, treated as zero.
<to be read again> 
                   \vskip 
l.578 ...in Equation~\ref{eqn:twinSIR:hagelloch}.}
                                                  \label{fig:hagellochFit_plot}
! Illegal unit of measure (pt inserted).
<to be read again> 
                   \vskip 
l.578 ...in Equation~\ref{eqn:twinSIR:hagelloch}.}
                                                  \label{fig:hagellochFit_plot}
! Missing \endgroup inserted.
<inserted text> 
                \endgroup 
l.578 ...in Equation~\ref{eqn:twinSIR:hagelloch}.}
                                                  \label{fig:hagellochFit_plot}
! Missing \endgroup inserted.
<inserted text> 
                \endgroup 
l.578 ...in Equation~\ref{eqn:twinSIR:hagelloch}.}
                                                  \label{fig:hagellochFit_plot}
! Missing \endgroup inserted.
<inserted text> 
                \endgroup 
l.578 ...in Equation~\ref{eqn:twinSIR:hagelloch}.}
                                                  \label{fig:hagellochFit_plot}
! Missing } inserted.
<inserted text> 
                }
l.578 ...in Equation~\ref{eqn:twinSIR:hagelloch}.}
                                                  \label{fig:hagellochFit_plot}
! Missing \endgroup inserted.
<inserted text> 
                \endgroup 
l.578 ...in Equation~\ref{eqn:twinSIR:hagelloch}.}
                                                  \label{fig:hagellochFit_plot}
! Missing \endgroup inserted.
<inserted text> 
                \endgroup 
l.578 ...in Equation~\ref{eqn:twinSIR:hagelloch}.}
                                                  \label{fig:hagellochFit_plot}
! Missing } inserted.
<inserted text> 
                }
l.578 ...in Equation~\ref{eqn:twinSIR:hagelloch}.}
                                                  \label{fig:hagellochFit_plot}
! Missing } inserted.
<inserted text> 
                }
l.578 ...in Equation~\ref{eqn:twinSIR:hagelloch}.}
                                                  \label{fig:hagellochFit_plot}
! Missing } inserted.
<inserted text> 
                }
l.578 ...in Equation~\ref{eqn:twinSIR:hagelloch}.}
                                                  \label{fig:hagellochFit_plot}
! Extra }, or forgotten \endgroup.
\color@endbox ->\color@endgroup \egroup 
                                        
l.579 \end{figure}
                  
! LaTeX Error: \begin{Schunk} on input line 568 ended by \end{figure}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
! LaTeX Error: \begin{figure} on input line 520 ended by \end{Schunk}.

See the LaTeX manual or LaTeX Companion for explanation.
Typ
--- failed re-building ‘twinSIR.Rnw’

--- re-building ‘twinstim.Rnw’ using knitr
Loading required package: sp
Loading required package: xtable
This is surveillance 1.17.1. For overview type 'help(surveillance)'.
Doing computations: FALSE
Loading required namespace: spdep
Note: auto-generated neighbourhood matrix contains 1 island
no epidemic component in model
Setting up the model environment ...
Loading required namespace: parallel
'imdfit_powerlaw' was fit with disabled 'cumCIF' -> calculate it now ...
Note: added the 'tau' component to object 'imdfit_powerlaw' for future use.
Error: processing vignette 'twinstim.Rnw' failed with diagnostics:
Running 'texi2dvi' on 'twinstim.tex' failed.
LaTeX errors:
! Paragraph ended before \@tempa was complete.
<to be read again> 
                   \par 
l.625 
      
! Extra }, or forgotten \endgroup.
l.626 }
       
I've deleted a group-closing symbol because it seems to be
spurious, as in `$x}$'. But perhaps the } is legitimate and
! Extra }, or forgotten \endgroup.
\@endfloatbox ...pagefalse \outer@nobreak \egroup 
                                                  \color@endbox 
l.629 \end{figure}
                  
! Extra }, or forgotten \endgroup.
\color@endbox ->\color@endgroup \egroup 
                                        
l.629 \end{figure}
                  
! LaTeX Error: \begin{figure} on input line 622 ended by \end{Schunk}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
! Missing } inserted.
<inserted text> 
                }
l.630 \end{Schunk}
                  
! Missing } inserted.
<inserted text> 
                }
l.630 \end{Schunk}
                  
! LaTeX Error: Not in outer par mode.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
! Argument of \@tempa has an extra }.
<inserted text> 
                \par 
l.643 ...inewidth]{plots/twinstim-imdepi_plot-1} }
                                                  \subfloat[Spatial pattern....
! Paragraph ended before \@tempa was complete.
<to be read again> 
                   \par 
l.643 ...inewidth]{plots/twinstim-imdepi_plot-1} }
                                                  \subfloat[Spatial pattern....
! Extra }, or forgotten \endgroup.
<recently read> }
                 
l.643 ...inewidth]{plots/twinstim-imdepi_plot-1} }
                                                  \subfloat[Spatial pattern....
! Argument of \@tempa has an extra }.
<inserted text> 
                \par 
l.643 ...inewidth]{plots/twinstim-imdepi_plot-2} }
                                                  
! Paragraph ended before \@tempa was complete.
<to be read again> 
                   \par 
l.643 ...inewidth]{plots/twinstim-imdepi_plot-2} }
                                                  
! Extra }, or forgotten \endgroup.
<recently read> }
                 
l.643 ...inewidth]{plots/twinstim-imdepi_plot-2} }
                                                  
! Extra }, or forgotten \endgroup.
l.645 }
       
I've deleted a group-closing symbol because it seems to be
spurious, as in `$x}$'. But perhaps the } is legitimate and
! You can't use `\hrule' here except with leaders.
\caption@hrule ->\hrule 
                        \@height \z@ 
l.647 ... in the temporal and spatial dimensions.}
                                                  \label{fig:imdepi_plot}
! Missing number, treated as zero.
<to be read again> 
                   \vskip 
l.647 ... in the temporal and spatial dimensions.}
                                                  \label{fig:imdepi_plot}
! Illegal unit of measure (pt inserted).
<to be read again> 
                   \vskip 
l.647 ... in the temporal and spatial dimensions.}
                                                  \label{fig:imdepi_plot}
! Missing \endgroup inserted.
<inserted text> 
                \endgroup 
l.647 ... in the temporal and spatial dimensions.}
                                                  \label{fig:imdepi_plot}
! Missing \endgroup inserted.
<inserted text> 
                \endgroup 
l.647 ... in the temporal and spatial dimensions.}
                                                  \label{fig:imdepi_plot}
! Missing \endgroup inserted.
<inserted text> 
                \endgroup 
l.647 ... in the temporal and spatial dimensions.}
                                                  \label{fig:imdepi_plot}
! Missing } inserted.
<inserted text> 
                }
l.647 ... in the temporal and spatial dimensions.}
                                                  \label{fig:imdepi_plot}
! Missing \endgroup inserted.
<inserted text> 
                \endgroup 
l.647 ... in the temporal and spatial dimensions.}
                                                  \label{fig:imdepi_plot}
! Missing \endgroup inserted.
<inserted text> 
                \endgroup 
l.647 ... in the temporal and spatial dimensions.}
                                                  \label{fig:imdepi_plot}
! Missing } inserted.
<inserted text> 
                }
l.647 ... in the temporal and spatial dimensions.}
                                                  \label{fig:imdepi_plot}
! Missing } inserted.
<inserted text> 
                }
l.647 ... in the temporal and spatial dimensions.}
                                                  \label{fig:imdepi_plot}
! Missing } inserted.
<inserted text> 
                }
l.647 ... in the temporal and spatial dimensions.}
                                                  \label{fig:imdepi_plot}
! Extra }, or forgotten \endgroup.
\color@endbox ->\color@endgroup \egroup 
                                        
l.648 \end{figure}
                  
! LaTeX Error: \begin{Schunk} on input line 634 ended by \end{figure}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
! LaTeX Error: \begin{figure} on input line 622 ended by \end{Schunk}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
! Missing } inserted.
<inserted text> 
                }
l.649 \end{Schunk}
                  
! Argument of \@tempa has an extra }.
<inserted text> 
                \par 
l.729 ...inewidth]{plots/twinstim-imdsts_plot-1} }
                                                  \subfloat[Disease incidenc...
! Paragraph ended before \@tempa was complete.
<to be read again> 
                   \par 
l.729 ...inewidth]{plots/twinstim-imdsts_plot-1} }
                                                  \subfloat[Disease incidenc...
! Extra }, or forgotten \endgroup.
<recently read> }
                 
l.729 ...inewidth]{plots/twinstim-imdsts_plot-1} }
                                                  \subfloat[Disease incidenc...
! Argument of \@tempa has an extra }.
<inserted text> 
                \par 
l.729 ...inewidth]{plots/twinstim-imdsts_plot-2} }
                                                  
! Paragraph ended before \@tempa was complete.
<to be read again> 
                   \par 
l.729 ...inewidth]{plots/twinstim-imdsts_plot-2} }
                                                  
! Extra }, or forgotten \endgroup.
<recently read> }
                 
l.729 ...inewidth]{plots/twinstim-imdsts_plot-2} }
                                                  
! Extra }, or forgotten \endgroup.
l.731 }
       
I've deleted a group-closing symbol because it seems to be
spurious, as in `$x}$'. But perhaps the } is legitimate and
! You can't use `\hrule' here except with leaders.
\caption@hrule ->\hrule 
                        \@height \z@ 
l.733 ...class{sts} object by month and district.}
                                                  \label{fig:imdsts_plot}
! Missing number, treated as zero.
<to be read again> 
                   \vskip 
l.733 ...class{sts} object by month and district.}
                                                  \label{fig:imdsts_plot}
! Illegal unit of measure (pt inserted).
<to be read again> 
                   \vskip 
l.733 ...class{sts} object by month and district.}
                                                  \label{fig:imdsts_plot}
! Missing \endgroup inserted.
<inserted text> 
                \endgroup 
l.733 ...class{sts} object by month and district.}
                                                  \label{fig:imdsts_plot}
! Missing \endgroup inserted.
<inserted text> 
                \endgroup 
l.733 ...class{sts} object by month and district.}
                                                  \label{fig:imdsts_plot}
! Missing \endgroup inserted.
<inserted text> 
                \endgroup 
l.733 ...class{sts} o
--- failed re-building ‘twinstim.Rnw’

SUMMARY: processing the following files failed:
  ‘glrnb.Rnw’ ‘hhh4.Rnw’ ‘monitoringCounts.Rnw’ ‘surveillance.Rnw’
  ‘hhh4_spacetime.Rnw’ ‘twinSIR.Rnw’ ‘twinstim.Rnw’

Error: Vignette re-building failed.
Execution halted