Error(s) in re-building vignettes:
--- re-building ‘mapmisc.Rnw’ using knitr
Loading required package: sp
Loading required package: raster
map images will be cached in  /tmp/Rtmp7dnIGt/working_dir/RtmpSpJQRy/mapmiscCache
--- finished re-building ‘mapmisc.Rnw’

--- re-building ‘north.Rmd’ using docco_linear
--- finished re-building ‘north.Rmd’

make[1]: Entering directory '/data/gannet/ripley/R/packages/tests-devel/mapmisc.Rcheck/vign_test/mapmisc/vignettes'
xelatex -interaction=nonstopmode mapmisc.tex;
This is XeTeX, Version 3.14159265-2.6-0.999991 (TeX Live 2019) (preloaded format=xelatex)
 restricted \write18 enabled.
entering extended mode
(./mapmisc.tex
LaTeX2e <2019-10-01> patch level 1
(/usr/local/texlive/2019/texmf-dist/tex/latex/base/article.cls
Document Class: article 2019/08/27 v1.4j Standard LaTeX document class
(/usr/local/texlive/2019/texmf-dist/tex/latex/base/size12.clo))
(/usr/local/texlive/2019/texmf-dist/tex/latex/graphics/graphicx.sty
(/usr/local/texlive/2019/texmf-dist/tex/latex/graphics/keyval.sty)
(/usr/local/texlive/2019/texmf-dist/tex/latex/graphics/graphics.sty
(/usr/local/texlive/2019/texmf-dist/tex/latex/graphics/trig.sty)
(/usr/local/texlive/2019/texmf-dist/tex/latex/graphics-cfg/graphics.cfg)
(/usr/local/texlive/2019/texmf-dist/tex/latex/graphics-def/xetex.def)))
(/usr/local/texlive/2019/texmf-dist/tex/latex/graphics/color.sty
(/usr/local/texlive/2019/texmf-dist/tex/latex/graphics-cfg/color.cfg))
(/usr/local/texlive/2019/texmf-dist/tex/latex/framed/framed.sty)
(/usr/local/texlive/2019/texmf-dist/tex/latex/base/alltt.sty)
(/usr/local/texlive/2019/texmf-dist/tex/latex/geometry/geometry.sty
(/usr/local/texlive/2019/texmf-dist/tex/generic/oberdiek/ifpdf.sty)
(/usr/local/texlive/2019/texmf-dist/tex/generic/oberdiek/ifvtex.sty)
(/usr/local/texlive/2019/texmf-dist/tex/generic/ifxetex/ifxetex.sty))
(/usr/local/texlive/2019/texmf-dist/tex/latex/hyperref/hyperref.sty
(/usr/local/texlive/2019/texmf-dist/tex/generic/oberdiek/hobsub-hyperref.sty
(/usr/local/texlive/2019/texmf-dist/tex/generic/oberdiek/hobsub-generic.sty))
(/usr/local/texlive/2019/texmf-dist/tex/latex/oberdiek/auxhook.sty)
(/usr/local/texlive/2019/texmf-dist/tex/latex/oberdiek/kvoptions.sty)
(/usr/local/texlive/2019/texmf-dist/tex/latex/hyperref/pd1enc.def)
(/usr/local/texlive/2019/texmf-dist/tex/latex/latexconfig/hyperref.cfg)
(/usr/local/texlive/2019/texmf-dist/tex/latex/url/url.sty))
(/usr/local/texlive/2019/texmf-dist/tex/latex/hyperref/hxetex.def
(/usr/local/texlive/2019/texmf-dist/tex/latex/hyperref/puenc.def)
(/usr/local/texlive/2019/texmf-dist/tex/generic/oberdiek/stringenc.sty)
(/usr/local/texlive/2019/texmf-dist/tex/latex/oberdiek/rerunfilecheck.sty))
(/usr/local/texlive/2019/texmf-dist/tex/latex/caption/caption.sty
(/usr/local/texlive/2019/texmf-dist/tex/latex/caption/caption3.sty))
(/usr/local/texlive/2019/texmf-dist/tex/latex/caption/subcaption.sty)
(/usr/local/texlive/2019/texmf-dist/tex/latex/upquote/upquote.sty
(/usr/local/texlive/2019/texmf-dist/tex/latex/base/textcomp.sty
(/usr/local/texlive/2019/texmf-dist/tex/latex/base/ts1enc.def)))
No file mapmisc.aux.
(/usr/local/texlive/2019/texmf-dist/tex/latex/base/ts1cmr.fd)
*geometry* driver: auto-detecting
*geometry* detected driver: xetex
(/usr/local/texlive/2019/texmf-dist/tex/latex/hyperref/nameref.sty
(/usr/local/texlive/2019/texmf-dist/tex/generic/oberdiek/gettitlestring.sty))

Package hyperref Warning: Rerun to get /PageLabels entry.

(/usr/local/texlive/2019/texmf-dist/tex/generic/oberdiek/se-ascii-print.def)
[1]
Overfull \hbox (920.52892pt too wide) in paragraph at lines 192--192
[]\TU/lmtt/m/n/12 ## [1] "+init=epsg:28992 +proj=sterea +lat_0=52.1561605555555
5 +lon_0=5.38763888888889 +k=0.9999079 +x_0=155000 +y_0=463000 +ellps=bessel +t
owgs84=565.2369,50.0087,465.658,-0.406857,0.350733,-1.87035,4.0812 +units=m +no
_defs"[] 

Overfull \hbox (920.52892pt too wide) in paragraph at lines 198--198
[]\TU/lmtt/m/n/12 ## [1] "+init=epsg:28992 +proj=sterea +lat_0=52.1561605555555
5 +lon_0=5.38763888888889 +k=0.9999079 +x_0=155000 +y_0=463000 +ellps=bessel +t
owgs84=565.2369,50.0087,465.658,-0.406857,0.350733,-1.87035,4.0812 +units=m +no
_defs"[] 

Overfull \hbox (22.7607pt too wide) in paragraph at lines 201--203
[]\TU/lmr/m/n/12 Maps which can be downloaded are shown at []$[][][][] [] [] []
 [][][][][][][][][][][][][][] [] [][][][][][][][] [] [][][][][][][][][][] []
[2]
Overfull \hbox (389.14493pt too wide) in paragraph at lines 239--239
[]\TU/lmtt/m/n/12 ## [1] "+proj=sterea +lat_0=52.15616055555555 +lon_0=5.387638
88888889 +k=0.9999079 +x_0=155000 +y_0=463000 +ellps=bessel +units=m +no_defs"[
] 

Overfull \hbox (45.33289pt too wide) in paragraph at lines 274--274
[][]\TU/lmtt/b/n/12 plot[][]\TU/lmtt/m/n/12 (nldElev,[][]add[][]=[][]TRUE[][],[
][]col[][]=[][]\TU/lmtt/b/n/12 terrain.colors[][]\TU/lmtt/m/n/12 ([][]8[][]),[]
[]alpha[][]=[][]0.6[][],[][]legend.mar[][]=[][]2[][],[] []legend.line[][]=[][]0
[][],)[][] 
[3]
! Argument of \@tempa has an extra }.
<inserted text> 
                \par 
l.279 ...idth=0.3\textwidth]{figure/simpleMap-1} }
                                                  
Runaway argument?
"figure/simpleMap-1.png" \edef \Gin@ext {\Gin@temp }\fi \def \Gin@temp \ETC.
! Paragraph ended before \@tempa was complete.
<to be read again> 
                   \par 
l.279 ...idth=0.3\textwidth]{figure/simpleMap-1} }
                                                  
! Extra }, or forgotten \endgroup.
<recently read> }
                 
l.279 ...idth=0.3\textwidth]{figure/simpleMap-1} }
                                                  

Overfull \hbox (13.9941pt too wide) in paragraph at lines 279--279
[]\TU/lmr/m/n/10.95 (a)

Overfull \hbox (21.29774pt too wide) in paragraph at lines 279--279
|\TU/lmr/m/n/10.95 data

Overfull \hbox (12.16545pt too wide) in paragraph at lines 279--279
\TU/lmr/m/n/10.95 lo-

Overfull \hbox (13.98315pt too wide) in paragraph at lines 279--279
\TU/lmr/m/n/10.95 ca-

Overfull \hbox (23.18114pt too wide) in paragraph at lines 279--279
\TU/lmr/m/n/10.95 tions| 
! Argument of \@tempa has an extra }.
<inserted text> 
                \par 
l.280 ...idth=0.3\textwidth]{figure/simpleMap-2} }
                                                  
Runaway argument?
"figure/simpleMap-2.png" \edef \Gin@ext {\Gin@temp }\fi \def \Gin@temp \ETC.
! Paragraph ended before \@tempa was complete.
<to be read again> 
                   \par 
l.280 ...idth=0.3\textwidth]{figure/simpleMap-2} }
                                                  
! Extra }, or forgotten \endgroup.
<recently read> }
                 
l.280 ...idth=0.3\textwidth]{figure/simpleMap-2} }
                                                  

Overfull \hbox (14.6073pt too wide) in paragraph at lines 280--280
[]\TU/lmr/m/n/10.95 (b)

Overfull \hbox (24.38565pt too wide) in paragraph at lines 280--280
|\TU/lmr/m/n/10.95 cities| 
! Argument of \@tempa has an extra }.
<inserted text> 
                \par 
l.281 ...idth=0.3\textwidth]{figure/simpleMap-3} }
                                                  
Runaway argument?
"figure/simpleMap-3.png" \edef \Gin@ext {\Gin@temp }\fi \def \Gin@temp \ETC.
! Paragraph ended before \@tempa was complete.
<to be read again> 
                   \par 
l.281 ...idth=0.3\textwidth]{figure/simpleMap-3} }
                                                  
! Extra }, or forgotten \endgroup.
<recently read> }
                 
l.281 ...idth=0.3\textwidth]{figure/simpleMap-3} }
                                                  

Overfull \hbox (13.38089pt too wide) in paragraph at lines 281--281
[]\TU/lmr/m/n/10.95 (c)

Overfull \hbox (11.55225pt too wide) in paragraph at lines 281--281
|\TU/lmr/m/n/10.95 el-

Overfull \hbox (8.50815pt too wide) in paragraph at lines 281--281
\TU/lmr/m/n/10.95 e-

Overfull \hbox (14.28975pt too wide) in paragraph at lines 281--281
\TU/lmr/m/n/10.95 va-

Overfull \hbox (18.86685pt too wide) in paragraph at lines 281--281
\TU/lmr/m/n/10.95 tion| 
! Extra }, or forgotten \endgroup.
l.283 }
       
! You can't use `\hrule' here except with leaders.
\caption@hrule ->\hrule 
                        \@height \z@ 
l.285 \caption[simple map]{simple map}
                                      \label{fig:simpleMap}
! Missing number, treated as zero.
<to be read again> 
                   \vskip 
l.285 \caption[simple map]{simple map}
                                      \label{fig:simpleMap}
! Illegal unit of measure (pt inserted).
<to be read again> 
                   \vskip 
l.285 \caption[simple map]{simple map}
                                      \label{fig:simpleMap}
! Missing \endgroup inserted.
<inserted text> 
                \endgroup 
l.285 \caption[simple map]{simple map}
                                      \label{fig:simpleMap}
! Missing \endgroup inserted.
<inserted text> 
                \endgroup 
l.285 \caption[simple map]{simple map}
                                      \label{fig:simpleMap}
! Missing \endgroup inserted.
<inserted text> 
                \endgroup 
l.285 \caption[simple map]{simple map}
                                      \label{fig:simpleMap}
! Missing } inserted.
<inserted text> 
                }
l.285 \caption[simple map]{simple map}
                                      \label{fig:simpleMap}
! Missing \endgroup inserted.
<inserted text> 
                \endgroup 
l.285 \caption[simple map]{simple map}
                                      \label{fig:simpleMap}
! Missing \endgroup inserted.
<inserted text> 
                \endgroup 
l.285 \caption[simple map]{simple map}
                                      \label{fig:simpleMap}
! Missing } inserted.
<inserted text> 
                }
l.285 \caption[simple map]{simple map}
                                      \label{fig:simpleMap}
! Missing \endgroup inserted.
<inserted text> 
                \endgroup 
l.285 \caption[simple map]{simple map}
                                      \label{fig:simpleMap}
! Missing \endgroup inserted.
<inserted text> 
                \endgroup 
l.285 \caption[simple map]{simple map}
                                      \label{fig:simpleMap}
! Missing } inserted.
<inserted text> 
                }
l.285 \caption[simple map]{simple map}
                                      \label{fig:simpleMap}
! Missing } inserted.
<inserted text> 
                }
l.285 \caption[simple map]{simple map}
                                      \label{fig:simpleMap}
! Missing } inserted.
<inserted text> 
                }
l.285 \caption[simple map]{simple map}
                                      \label{fig:simpleMap}
! Extra }, or forgotten \endgroup.
\color@endbox ->\color@endgroup \egroup 
                                        
l.286 \end{figure}
                  

! LaTeX Error: \begin{knitrout} on input line 255 ended by \end{figure}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.286 \end{figure}
                  

! LaTeX Error: \begin{document} ended by \end{knitrout}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.289 \end{knitrout}
                    
! Extra \endgroup.
<recently read> \endgroup 
                          
l.289 \end{knitrout}
                    
[4]
! Argument of \@tempa has an extra }.
<inserted text> 
                \par 
l.351 ...h=0.3\textwidth]{figure/meuseLegends-1} }
                                                  
Runaway argument?
"figure/meuseLegends-1.png" \edef \Gin@ext {\Gin@temp }\fi \def \Gin@temp \ETC.
! Paragraph ended before \@tempa was complete.
<to be read again> 
                   \par 
l.351 ...h=0.3\textwidth]{figure/meuseLegends-1} }
                                                  
! Extra }, or forgotten \endgroup.
<recently read> }
                 
l.351 ...h=0.3\textwidth]{figure/meuseLegends-1} }
                                                  

Overfull \hbox (13.9941pt too wide) in paragraph at lines 351--351
[]\TU/lmr/m/n/10.95 (a)

Overfull \hbox (23.11545pt too wide) in paragraph at lines 351--351
|\TU/lmr/m/n/10.95 Cop-

Overfull \hbox (15.549pt too wide) in paragraph at lines 351--351
\TU/lmr/m/n/10.95 per| 
! Argument of \@tempa has an extra }.
<inserted text> 
                \par 
l.352 ...h=0.3\textwidth]{figure/meuseLegends-2} }
                                                  
Runaway argument?
"figure/meuseLegends-2.png" \edef \Gin@ext {\Gin@temp }\fi \def \Gin@temp \ETC.
! Paragraph ended before \@tempa was complete.
<to be read again> 
                   \par 
l.352 ...h=0.3\textwidth]{figure/meuseLegends-2} }
                                                  
! Extra }, or forgotten \endgroup.
<recently read> }
                 
l.352 ...h=0.3\textwidth]{figure/meuseLegends-2} }
                                                  

Overfull \hbox (14.6073pt too wide) in paragraph at lines 352--352
[]\TU/lmr/m/n/10.95 (b)

Overfull \hbox (15.8775pt too wide) in paragraph at lines 352--352
|\TU/lmr/m/n/10.95 soil| 
! Argument of \@tempa has an extra }.
<inserted text> 
                \par 
l.353 ...h=0.3\textwidth]{figure/meuseLegends-3} }
                                                  
Runaway argument?
"figure/meuseLegends-3.png" \edef \Gin@ext {\Gin@temp }\fi \def \Gin@temp \ETC.
! Paragraph ended before \@tempa was complete.
<to be read again> 
                   \par 
l.353 ...h=0.3\textwidth]{figure/meuseLegends-3} }
                                                  
! Extra }, or forgotten \endgroup.
<recently read> }
                 
l.353 ...h=0.3\textwidth]{figure/meuseLegends-3} }
                                                  

Overfull \hbox (13.38089pt too wide) in paragraph at lines 353--353
[]\TU/lmr/m/n/10.95 (c)

Overfull \hbox (11.55225pt too wide) in paragraph at lines 353--353
|\TU/lmr/m/n/10.95 el-

Overfull \hbox (8.50815pt too wide) in paragraph at lines 353--353
\TU/lmr/m/n/10.95 e-

Overfull \hbox (14.28975pt too wide) in paragraph at lines 353--353
\TU/lmr/m/n/10.95 va-

Overfull \hbox (18.86685pt too wide) in paragraph at lines 353--353
\TU/lmr/m/n/10.95 tion| 
! Extra }, or forgotten \endgroup.
l.355 }
       
! You can't use `\hrule' here except with leaders.
\caption@hrule ->\hrule 
                        \@height \z@ 
l.357 \caption[Meuse data again]{Meuse data again}
                                                  \label{fig:meuseLegends}
! Missing number, treated as zero.
<to be read again> 
                   \vskip 
l.357 \caption[Meuse data again]{Meuse data again}
                                                  \label{fig:meuseLegends}
! Illegal unit of measure (pt inserted).
<to be read again> 
                   \vskip 
l.357 \caption[Meuse data again]{Meuse data again}
                                                  \label{fig:meuseLegends}
! Missing \endgroup inserted.
<inserted text> 
                \endgroup 
l.357 \caption[Meuse data again]{Meuse data again}
                                                  \label{fig:meuseLegends}
! Missing \endgroup inserted.
<inserted text> 
                \endgroup 
l.357 \caption[Meuse data again]{Meuse data again}
                                                  \label{fig:meuseLegends}
! Missing \endgroup inserted.
<inserted text> 
                \endgroup 
l.357 \caption[Meuse data again]{Meuse data again}
                                                  \label{fig:meuseLegends}
! Missing } inserted.
<inserted text> 
                }
l.357 \caption[Meuse data again]{Meuse data again}
                                                  \label{fig:meuseLegends}
! Missing \endgroup inserted.
<inserted text> 
                \endgroup 
l.357 \caption[Meuse data again]{Meuse data again}
                                                  \label{fig:meuseLegends}
! Missing \endgroup inserted.
<inserted text> 
                \endgroup 
l.357 \caption[Meuse data again]{Meuse data again}
                                                  \label{fig:meuseLegends}
! Missing } inserted.
<inserted text> 
                }
l.357 \caption[Meuse data again]{Meuse data again}
                                                  \label{fig:meuseLegends}
! Missing \endgroup inserted.
<inserted text> 
                \endgroup 
l.357 \caption[Meuse data again]{Meuse data again}
                                                  \label{fig:meuseLegends}
! Missing \endgroup inserted.
<inserted text> 
                \endgroup 
l.357 \caption[Meuse data again]{Meuse data again}
                                                  \label{fig:meuseLegends}
! Missing } inserted.
<inserted text> 
                }
l.357 \caption[Meuse data again]{Meuse data again}
                                                  \label{fig:meuseLegends}
! Missing } inserted.
<inserted text> 
                }
l.357 \caption[Meuse data again]{Meuse data again}
                                                  \label{fig:meuseLegends}
! Missing } inserted.
<inserted text> 
                }
l.357 \caption[Meuse data again]{Meuse data again}
                                                  \label{fig:meuseLegends}
! Extra }, or forgotten \endgroup.
\color@endbox ->\color@endgroup \egroup 
                                        
l.358 \end{figure}
                  

! LaTeX Error: \begin{knitrout} on input line 327 ended by \end{figure}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.358 \end{figure}
                  

! LaTeX Error: \begin{document} ended by \end{knitrout}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.361 \end{knitrout}
                    
! Extra \endgroup.
<recently read> \endgroup 
                          
l.361 \end{knitrout}
                    
! Argument of \@tempa has an extra }.
<inserted text> 
                \par 
l.408 ...th=0.48\textwidth]{figure/rotatedMap-1} }
                                                  
Runaway argument?
"figure/rotatedMap-1.png" \edef \Gin@ext {\Gin@temp }\fi \def \Gin@temp \ETC.
! Paragraph ended before \@tempa was complete.
<to be read again> 
                   \par 
l.408 ...th=0.48\textwidth]{figure/rotatedMap-1} }
                                                  
! Extra }, or forgotten \endgroup.
<recently read> }
                 
l.408 ...th=0.48\textwidth]{figure/rotatedMap-1} }
                                                  

Overfull \hbox (13.9941pt too wide) in paragraph at lines 408--408
[]\TU/lmr/m/n/10.95 (a)

Overfull \hbox (11.55225pt too wide) in paragraph at lines 408--408
|\TU/lmr/m/n/10.95 el-

Overfull \hbox (8.50815pt too wide) in paragraph at lines 408--408
\TU/lmr/m/n/10.95 e-

Overfull \hbox (14.28975pt too wide) in paragraph at lines 408--408
\TU/lmr/m/n/10.95 va-

Overfull \hbox (18.86685pt too wide) in paragraph at lines 408--408
\TU/lmr/m/n/10.95 tion| 
! Argument of \@tempa has an extra }.
<inserted text> 
                \par 
l.409 ...th=0.48\textwidth]{figure/rotatedMap-2} }
                                                  
Runaway argument?
"figure/rotatedMap-2.png" \edef \Gin@ext {\Gin@temp }\fi \def \Gin@temp \ETC.
! Paragraph ended before \@tempa was complete.
<to be read again> 
                   \par 
l.409 ...th=0.48\textwidth]{figure/rotatedMap-2} }
                                                  
! Extra }, or forgotten \endgroup.
<recently read> }
                 
l.409 ...th=0.48\textwidth]{figure/rotatedMap-2} }
                                                  

Overfull \hbox (14.6073pt too wide) in paragraph at lines 409--409
[]\TU/lmr/m/n/10.95 (b)

Overfull \hbox (21.29774pt too wide) in paragraph at lines 409--409
|\TU/lmr/m/n/10.95 data| 
! Extra }, or forgotten \endgroup.
l.411 }
       
! You can't use `\hrule' here except with leaders.
\caption@hrule ->\hrule 
                        \@height \z@ 
l.413 \caption[Rotated map]{Rotated map}
                                        \label{fig:rotatedMap}
! Missing number, treated as zero.
<to be read again> 
                   \vskip 
l.413 \caption[Rotated map]{Rotated map}
                                        \label{fig:rotatedMap}
! Illegal unit of measure (pt inserted).
<to be read again> 
                   \vskip 
l.413 \caption[Rotated map]{Rotated map}
                                        \label{fig:rotatedMap}
! Missing \endgroup inserted.
<inserted text> 
                \endgroup 
l.413 \caption[Rotated map]{Rotated map}
                                        \label{fig:rotatedMap}
! Missing \endgroup inserted.
<inserted text> 
                \endgroup 
l.413 \caption[Rotated map]{Rotated map}
                                        \label{fig:rotatedMap}
! Missing \endgroup inserted.
<inserted text> 
                \endgroup 
l.413 \caption[Rotated map]{Rotated map}
                                        \label{fig:rotatedMap}
! Missing } inserted.
<inserted text> 
                }
l.413 \caption[Rotated map]{Rotated map}
                                        \label{fig:rotatedMap}
! Missing \endgroup inserted.
<inserted text> 
                \endgroup 
l.413 \caption[Rotated map]{Rotated map}
                                        \label{fig:rotatedMap}
! Missing \endgroup inserted.
<inserted text> 
                \endgroup 
l.413 \caption[Rotated map]{Rotated map}
                                        \label{fig:rotatedMap}
! Missing } inserted.
<inserted text> 
                }
l.413 \caption[Rotated map]{Rotated map}
                                        \label{fig:rotatedMap}
! Missing } inserted.
<inserted text> 
                }
l.413 \caption[Rotated map]{Rotated map}
                                        \label{fig:rotatedMap}
! Missing } inserted.
<inserted text> 
                }
l.413 \caption[Rotated map]{Rotated map}
                                        \label{fig:rotatedMap}
! Extra }, or forgotten \endgroup.
\color@endbox ->\color@endgroup \egroup 
                                        
l.414 \end{figure}
                  

! LaTeX Error: \begin{knitrout} on input line 386 ended by \end{figure}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.414 \end{figure}
                  

! LaTeX Error: \begin{document} ended by \end{knitrout}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.417 \end{knitrout}
                    
! Extra \endgroup.
<recently read> \endgroup 
                          
l.417 \end{knitrout}
                    
[5]
! Argument of \@tempa has an extra }.
<inserted text> 
                \par 
l.457 ...s[width=0.48\textwidth]{figure/inset-1} }
                                                  
Runaway argument?
"figure/inset-1.png" \edef \Gin@ext {\Gin@temp }\fi \def \Gin@temp {\@nil \ETC.
! Paragraph ended before \@tempa was complete.
<to be read again> 
                   \par 
l.457 ...s[width=0.48\textwidth]{figure/inset-1} }
                                                  
! Extra }, or forgotten \endgroup.
<recently read> }
                 
l.457 ...s[width=0.48\textwidth]{figure/inset-1} }
                                                  

Overfull \hbox (13.9941pt too wide) in paragraph at lines 457--457
[]\TU/lmr/m/n/10.95 (a)

Overfull \hbox (11.55225pt too wide) in paragraph at lines 457--457
|\TU/lmr/m/n/10.95 el-

Overfull \hbox (8.50815pt too wide) in paragraph at lines 457--457
\TU/lmr/m/n/10.95 e-

Overfull \hbox (14.28975pt too wide) in paragraph at lines 457--457
\TU/lmr/m/n/10.95 va-

Overfull \hbox (18.86685pt too wide) in paragraph at lines 457--457
\TU/lmr/m/n/10.95 tion| 
! Argument of \@tempa has an extra }.
<inserted text> 
                \par 
l.458 ...s[width=0.48\textwidth]{figure/inset-2} }
                                                  
Runaway argument?
"figure/inset-2.png" \edef \Gin@ext {\Gin@temp }\fi \def \Gin@temp {\@nil \ETC.
! Paragraph ended before \@tempa was complete.
<to be read again> 
                   \par 
l.458 ...s[width=0.48\textwidth]{figure/inset-2} }
                                                  
! Extra }, or forgotten \endgroup.
<recently read> }
                 
l.458 ...s[width=0.48\textwidth]{figure/inset-2} }
                                                  

Overfull \hbox (14.6073pt too wide) in paragraph at lines 458--458
[]\TU/lmr/m/n/10.95 (b)

Overfull \hbox (13.41374pt too wide) in paragraph at lines 458--458
|\TU/lmr/m/n/10.95 ro-

Overfull \hbox (24.94409pt too wide) in paragraph at lines 458--458
\TU/lmr/m/n/10.95 tated| 
! Extra }, or forgotten \endgroup.
l.460 }
       
! You can't use `\hrule' here except with leaders.
\caption@hrule ->\hrule 
                        \@height \z@ 
l.462 \caption[Inset map]{Inset map}
                                    \label{fig:inset}
! Missing number, treated as zero.
<to be read again> 
                   \vskip 
l.462 \caption[Inset map]{Inset map}
                                    \label{fig:inset}
! Illegal unit of measure (pt inserted).
<to be read again> 
                   \vskip 
l.462 \caption[Inset map]{Inset map}
                                    \label{fig:inset}
! Missing \endgroup inserted.
<inserted text> 
                \endgroup 
l.462 \caption[Inset map]{Inset map}
                                    \label{fig:inset}
! Missing \endgroup inserted.
<inserted text> 
                \endgroup 
l.462 \caption[Inset map]{Inset map}
                                    \label{fig:inset}
! Missing \endgroup inserted.
<inserted text> 
                \endgroup 
l.462 \caption[Inset map]{Inset map}
                                    \label{fig:inset}
! Missing } inserted.
<inserted text> 
                }
l.462 \caption[Inset map]{Inset map}
                                    \label{fig:inset}
! Missing \endgroup inserted.
<inserted text> 
                \endgroup 
l.462 \caption[Inset map]{Inset map}
                                    \label{fig:inset}
! Missing \endgroup inserted.
<inserted text> 
                \endgroup 
l.462 \caption[Inset map]{Inset map}
                                    \label{fig:inset}
! Missing } inserted.
<inserted text> 
                }
l.462 \caption[Inset map]{Inset map}
                                    \label{fig:inset}
! Missing } inserted.
<inserted text> 
                }
l.462 \caption[Inset map]{Inset map}
                                    \label{fig:inset}
! Missing } inserted.
<inserted text> 
                }
l.462 \caption[Inset map]{Inset map}
                                    \label{fig:inset}
! Extra }, or forgotten \endgroup.
\color@endbox ->\color@endgroup \egroup 
                                        
l.463 \end{figure}
                  

! LaTeX Error: \begin{knitrout} on input line 432 ended by \end{figure}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.463 \end{figure}
                  

! LaTeX Error: \begin{document} ended by \end{knitrout}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.466 \end{knitrout}
                    
! Extra \endgroup.
<recently read> \endgroup 
                          
l.466 \end{knitrout}
                    
[6] (./mapmisc.aux)

Package rerunfilecheck Warning: File `mapmisc.out' has changed.
(rerunfilecheck)                Rerun to get outlines right
(rerunfilecheck)                or use package `bookmark'.

 )
(\end occurred when \ifx on line 458 was incomplete)
(\end occurred when \ifx on line 458 was incomplete)
(\end occurred when \ifx on line 458 was incomplete)
(\end occurred when \ifx on line 458 was incomplete)
(\end occurred when \ifx on line 458 was incomplete)
(\end occurred when \ifx on line 457 was incomplete)
(\end occurred when \ifx on line 457 was incomplete)
(\end occurred when \ifx on line 457 was incomplete)
(\end occurred when \ifx on line 457 was incomplete)
(\end occurred when \ifx on line 457 was incomplete)
(\end occurred when \ifx on line 409 was incomplete)
(\end occurred when \ifx on line 409 was incomplete)
(\end occurred when \ifx on line 409 was incomplete)
(\end occurred when \ifx on line 409 was incomplete)
(\end occurred when \ifx on line 409 was incomplete)
(\end occurred when \ifx on line 408 was incomplete)
(\end occurred when \ifx on line 408 was incomplete)
(\end occurred when \ifx on line 408 was incomplete)
(\end occurred when \ifx on line 408 was incomplete)
(\end occurred when \ifx on line 408 was incomplete)
(\end occurred when \ifx on line 353 was incomplete)
(\end occurred when \ifx on line 353 was incomplete)
(\end occurred when \ifx on line 353 was incomplete)
(\end occurred when \ifx on line 353 was incomplete)
(\end occurred when \ifx on line 353 was incomplete)
(\end occurred when \ifx on line 352 was incomplete)
(\end occurred when \ifx on line 352 was incomplete)
(\end occurred when \ifx on line 352 was incomplete)
(\end occurred when \ifx on line 352 was incomplete)
(\end occurred when \ifx on line 352 was incomplete)
(\end occurred when \ifx on line 351 was incomplete)
(\end occurred when \ifx on line 351 was incomplete)
(\end occurred when \ifx on line 351 was incomplete)
(\end occurred when \ifx on line 351 was incomplete)
(\end occurred when \ifx on line 351 was incomplete)
(\end occurred when \ifx on line 281 was incomplete)
(\end occurred when \ifx on line 281 was incomplete)
(\end occurred when \ifx on line 281 was incomplete)
(\end occurred when \ifx on line 281 was incomplete)
(\end occurred when \ifx on line 281 was incomplete)
(\end occurred when \ifx on line 280 was incomplete)
(\end occurred when \ifx on line 280 was incomplete)
(\end occurred when \ifx on line 280 was incomplete)
(\end occurred when \ifx on line 280 was incomplete)
(\end occurred when \ifx on line 280 was incomplete)
(\end occurred when \ifx on line 279 was incomplete)
(\end occurred when \ifx on line 279 was incomplete)
(\end occurred when \ifx on line 279 was incomplete)
(\end occurred when \ifx on line 279 was incomplete)
(\end occurred when \ifx on line 279 was incomplete)
(see the transcript file for additional information)
Output written on mapmisc.pdf (6 pages).
Transcript written on mapmisc.log.
make[1]: *** [Makefile:10: mapmisc.pdf] Error 1
make[1]: Leaving directory '/data/gannet/ripley/R/packages/tests-devel/mapmisc.Rcheck/vign_test/mapmisc/vignettes'
Error in tools:::buildVignettes(dir = "/data/gannet/ripley/R/packages/tests-devel/mapmisc.Rcheck/vign_test/mapmisc",  : 
  running 'make' failed
Execution halted