Error in re-building vignettes:
  ...
Loading required package: sp
Loading required package: raster
rgdal: version: 1.2-7, (SVN revision 660)
 Geospatial Data Abstraction Library extensions to R successfully loaded
 Loaded GDAL runtime: GDAL 2.2.0, released 2017/04/28
 Path to GDAL shared files: /usr/local/share/gdal
 Loaded PROJ.4 runtime: Rel. 4.9.3, 15 August 2016, [PJ_VERSION: 493]
 Path to PROJ.4 shared files: (autodetected)
 Linking to sp version: 1.2-4 
Warning in readLines(con) : incomplete final line found on 'north.Rmd'
trying URL 'http://tile.openstreetmap.org/4/3/0.png'
Content type 'image/png' length 103 bytes
==================================================
downloaded 103 bytes

trying URL 'http://tile.openstreetmap.org/4/3/1.png'
Content type 'image/png' length 3342 bytes
==================================================
downloaded 3342 bytes

trying URL 'http://tile.openstreetmap.org/4/3/2.png'
Content type 'image/png' length 8154 bytes
==================================================
downloaded 8154 bytes

trying URL 'http://tile.openstreetmap.org/4/4/0.png'
Content type 'image/png' length 2088 bytes
==================================================
downloaded 2088 bytes

trying URL 'http://tile.openstreetmap.org/4/4/1.png'
Content type 'image/png' length 6447 bytes
==================================================
downloaded 6447 bytes

trying URL 'http://tile.openstreetmap.org/4/4/2.png'
Content type 'image/png' length 7799 bytes
==================================================
downloaded 7799 bytes

trying URL 'http://tile.openstreetmap.org/4/5/0.png'
Content type 'image/png' length 1882 bytes
==================================================
downloaded 1882 bytes

trying URL 'http://tile.openstreetmap.org/4/5/1.png'
Content type 'image/png' length 4715 bytes
==================================================
downloaded 4715 bytes

trying URL 'http://tile.openstreetmap.org/4/5/2.png'
Content type 'image/png' length 2264 bytes
==================================================
downloaded 2264 bytes

trying URL 'http://tile.openstreetmap.org/4/6/0.png'
Content type 'image/png' length 3421 bytes
==================================================
downloaded 3421 bytes

trying URL 'http://tile.openstreetmap.org/4/6/1.png'
Content type 'image/png' length 1574 bytes
==================================================
downloaded 1574 bytes

trying URL 'http://tile.openstreetmap.org/4/6/2.png'
Content type 'image/png' length 103 bytes
==================================================
downloaded 103 bytes

trying URL 'http://otile1.mqcdn.com/tiles/1.0.0/osm/4/3/0.png'
Error in .local(.Object, ...) : 

trying URL 'http://otile1.mqcdn.com/tiles/1.0.0/osm/4/3/1.png'
Error in .local(.Object, ...) : 

trying URL 'http://otile1.mqcdn.com/tiles/1.0.0/osm/4/3/2.png'
Error in .local(.Object, ...) : 

trying URL 'http://otile1.mqcdn.com/tiles/1.0.0/osm/4/4/0.png'
Error in .local(.Object, ...) : 

trying URL 'http://otile1.mqcdn.com/tiles/1.0.0/osm/4/4/1.png'
Error in .local(.Object, ...) : 

trying URL 'http://otile1.mqcdn.com/tiles/1.0.0/osm/4/4/2.png'
Error in .local(.Object, ...) : 

trying URL 'http://otile1.mqcdn.com/tiles/1.0.0/osm/4/5/0.png'
Error in .local(.Object, ...) : 

trying URL 'http://otile1.mqcdn.com/tiles/1.0.0/osm/4/5/1.png'
Error in .local(.Object, ...) : 

trying URL 'http://otile1.mqcdn.com/tiles/1.0.0/osm/4/5/2.png'
Error in .local(.Object, ...) : 

trying URL 'http://otile1.mqcdn.com/tiles/1.0.0/osm/4/6/0.png'
Error in .local(.Object, ...) : 

trying URL 'http://otile1.mqcdn.com/tiles/1.0.0/osm/4/6/1.png'
Error in .local(.Object, ...) : 

trying URL 'http://otile1.mqcdn.com/tiles/1.0.0/osm/4/6/2.png'
Error in .local(.Object, ...) : 

trying URL 'http://otile1.mqcdn.com/tiles/1.0.0/osm/6/19/5.png'
Error in .local(.Object, ...) : 

trying URL 'http://otile1.mqcdn.com/tiles/1.0.0/osm/6/19/6.png'
Error in .local(.Object, ...) : 

trying URL 'http://otile1.mqcdn.com/tiles/1.0.0/osm/6/19/7.png'
Error in .local(.Object, ...) : 

trying URL 'http://otile1.mqcdn.com/tiles/1.0.0/osm/6/20/5.png'
Error in .local(.Object, ...) : 

trying URL 'http://otile1.mqcdn.com/tiles/1.0.0/osm/6/20/6.png'
Error in .local(.Object, ...) : 

trying URL 'http://otile1.mqcdn.com/tiles/1.0.0/osm/6/20/7.png'
Error in .local(.Object, ...) : 

trying URL 'http://otile1.mqcdn.com/tiles/1.0.0/osm/5/9/4.png'
Error in .local(.Object, ...) : 

trying URL 'http://otile1.mqcdn.com/tiles/1.0.0/osm/5/9/5.png'
Error in .local(.Object, ...) : 

trying URL 'http://otile1.mqcdn.com/tiles/1.0.0/osm/5/10/4.png'
Error in .local(.Object, ...) : 

trying URL 'http://otile1.mqcdn.com/tiles/1.0.0/osm/5/10/5.png'
Error in .local(.Object, ...) : 

trying URL 'http://geoappext.nrcan.gc.ca/arcgis/rest/services/BaseMaps/CBMT_TXT_3857/MapServer/tile/3/0/1'
Content type 'image/png' length 872 bytes
==================================================
downloaded 872 bytes

trying URL 'http://geoappext.nrcan.gc.ca/arcgis/rest/services/BaseMaps/CBMT_TXT_3857/MapServer/tile/3/1/1'
Content type 'image/png' length 2553 bytes
==================================================
downloaded 2553 bytes

trying URL 'http://geoappext.nrcan.gc.ca/arcgis/rest/services/BaseMaps/CBMT_TXT_3857/MapServer/tile/3/2/1'
Content type 'image/png' length 15011 bytes (14 KB)
==================================================
downloaded 14 KB

trying URL 'http://geoappext.nrcan.gc.ca/arcgis/rest/services/BaseMaps/CBMT_TXT_3857/MapServer/tile/3/0/2'
Content type 'image/png' length 872 bytes
==================================================
downloaded 872 bytes

trying URL 'http://geoappext.nrcan.gc.ca/arcgis/rest/services/BaseMaps/CBMT_TXT_3857/MapServer/tile/3/1/2'
Content type 'image/png' length 3822 bytes
==================================================
downloaded 3822 bytes

trying URL 'http://geoappext.nrcan.gc.ca/arcgis/rest/services/BaseMaps/CBMT_TXT_3857/MapServer/tile/3/2/2'
Content type 'image/png' length 12987 bytes (12 KB)
==================================================
downloaded 12 KB

trying URL 'http://geoappext.nrcan.gc.ca/arcgis/rest/services/BaseMaps/CBMT_TXT_3857/MapServer/tile/3/0/3'
Content type 'image/png' length 872 bytes
==================================================
downloaded 872 bytes

trying URL 'http://geoappext.nrcan.gc.ca/arcgis/rest/services/BaseMaps/CBMT_TXT_3857/MapServer/tile/3/1/3'
Content type 'image/png' length 4621 bytes
==================================================
downloaded 4621 bytes

trying URL 'http://geoappext.nrcan.gc.ca/arcgis/rest/services/BaseMaps/CBMT_TXT_3857/MapServer/tile/3/2/3'
Content type 'image/png' length 3862 bytes
==================================================
downloaded 3862 bytes

trying URL 'http://geoappext.nrcan.gc.ca/arcgis/rest/services/BaseMaps/CBMT_CBCT_GEOM_3857/MapServer/tile/3/0/1'
Content type 'image/jpeg' length 3599 bytes
==================================================
downloaded 3599 bytes

trying URL 'http://geoappext.nrcan.gc.ca/arcgis/rest/services/BaseMaps/CBMT_CBCT_GEOM_3857/MapServer/tile/3/1/1'
Content type 'image/jpeg' length 12973 bytes (12 KB)
==================================================
downloaded 12 KB

trying URL 'http://geoappext.nrcan.gc.ca/arcgis/rest/services/BaseMaps/CBMT_CBCT_GEOM_3857/MapServer/tile/3/2/1'
Content type 'image/jpeg' length 7217 bytes
==================================================
downloaded 7217 bytes

trying URL 'http://geoappext.nrcan.gc.ca/arcgis/rest/services/BaseMaps/CBMT_CBCT_GEOM_3857/MapServer/tile/3/0/2'
Content type 'image/jpeg' length 7007 bytes
==================================================
downloaded 7007 bytes

trying URL 'http://geoappext.nrcan.gc.ca/arcgis/rest/services/BaseMaps/CBMT_CBCT_GEOM_3857/MapServer/tile/3/1/2'
Content type 'image/jpeg' length 10062 bytes
==================================================
downloaded 10062 bytes

trying URL 'http://geoappext.nrcan.gc.ca/arcgis/rest/services/BaseMaps/CBMT_CBCT_GEOM_3857/MapServer/tile/3/2/2'
Content type 'image/jpeg' length 11217 bytes (10 KB)
==================================================
downloaded 10 KB

trying URL 'http://geoappext.nrcan.gc.ca/arcgis/rest/services/BaseMaps/CBMT_CBCT_GEOM_3857/MapServer/tile/3/0/3'
Content type 'image/jpeg' length 5365 bytes
==================================================
downloaded 5365 bytes

trying URL 'http://geoappext.nrcan.gc.ca/arcgis/rest/services/BaseMaps/CBMT_CBCT_GEOM_3857/MapServer/tile/3/1/3'
Content type 'image/jpeg' length 5626 bytes
==================================================
downloaded 5626 bytes

trying URL 'http://geoappext.nrcan.gc.ca/arcgis/rest/services/BaseMaps/CBMT_CBCT_GEOM_3857/MapServer/tile/3/2/3'
Content type 'image/jpeg' length 6913 bytes
==================================================
downloaded 6913 bytes

trying URL 'http://geoappext.nrcan.gc.ca/arcgis/rest/services/BaseMaps/CBMT_CBCT_GEOM_3857/MapServer/tile/6/7/17'
Content type 'image/jpeg' length 12823 bytes (12 KB)
==================================================
downloaded 12 KB

trying URL 'http://geoappext.nrcan.gc.ca/arcgis/rest/services/BaseMaps/CBMT_CBCT_GEOM_3857/MapServer/tile/6/8/17'
Content type 'image/jpeg' length 14520 bytes (14 KB)
==================================================
downloaded 14 KB

trying URL 'http://geoappext.nrcan.gc.ca/arcgis/rest/services/BaseMaps/CBMT_CBCT_GEOM_3857/MapServer/tile/6/9/17'
Content type 'image/jpeg' length 14706 bytes (14 KB)
==================================================
downloaded 14 KB

trying URL 'http://geoappext.nrcan.gc.ca/arcgis/rest/services/BaseMaps/CBMT_CBCT_GEOM_3857/MapServer/tile/6/7/18'
Content type 'image/jpeg' length 17054 bytes (16 KB)
==================================================
downloaded 16 KB

trying URL 'http://geoappext.nrcan.gc.ca/arcgis/rest/services/BaseMaps/CBMT_CBCT_GEOM_3857/MapServer/tile/6/8/18'
Content type 'image/jpeg' length 15799 bytes (15 KB)
==================================================
downloaded 15 KB

trying URL 'http://geoappext.nrcan.gc.ca/arcgis/rest/services/BaseMaps/CBMT_CBCT_GEOM_3857/MapServer/tile/6/9/18'
Content type 'image/jpeg' length 7489 bytes
==================================================
downloaded 7489 bytes

trying URL 'http://geoappext.nrcan.gc.ca/arcgis/rest/services/BaseMaps/CBMT_CBCT_GEOM_3857/MapServer/tile/6/7/19'
Content type 'image/jpeg' length 7217 bytes
==================================================
downloaded 7217 bytes

trying URL 'http://geoappext.nrcan.gc.ca/arcgis/rest/services/BaseMaps/CBMT_CBCT_GEOM_3857/MapServer/tile/6/8/19'
Content type 'image/jpeg' length 10337 bytes (10 KB)
==================================================
downloaded 10 KB

trying URL 'http://geoappext.nrcan.gc.ca/arcgis/rest/services/BaseMaps/CBMT_CBCT_GEOM_3857/MapServer/tile/6/9/19'
Content type 'image/jpeg' length 14477 bytes (14 KB)
==================================================
downloaded 14 KB

trying URL 'http://tile.openstreetmap.org/13/8163/5402.png'
Content type 'image/png' length 11346 bytes (11 KB)
==================================================
downloaded 11 KB

trying URL 'http://tile.openstreetmap.org/13/8163/5403.png'
Content type 'image/png' length 7041 bytes
==================================================
downloaded 7041 bytes

trying URL 'http://tile.openstreetmap.org/13/8164/5402.png'
Content type 'image/png' length 14115 bytes (13 KB)
==================================================
downloaded 13 KB

trying URL 'http://tile.openstreetmap.org/13/8164/5403.png'
Content type 'image/png' length 6186 bytes
==================================================
downloaded 6186 bytes

trying URL 'http://tile.openstreetmap.org/18/261270/172890.png'
Content type 'image/png' length 11371 bytes (11 KB)
==================================================
downloaded 11 KB

trying URL 'http://tile.openstreetmap.org/18/261270/172891.png'
Content type 'image/png' length 3874 bytes
==================================================
downloaded 3874 bytes

trying URL 'http://tile.openstreetmap.org/18/261271/172890.png'
Content type 'image/png' length 2514 bytes
==================================================
downloaded 2514 bytes

trying URL 'http://tile.openstreetmap.org/18/261271/172891.png'
Content type 'image/png' length 2770 bytes
==================================================
downloaded 2770 bytes

trying URL 'http://tile.openstreetmap.org/19/522541/345781.png'
Content type 'image/png' length 8546 bytes
==================================================
downloaded 8546 bytes

trying URL 'http://tile.openstreetmap.org/19/522541/345782.png'
Content type 'image/png' length 10754 bytes (10 KB)
==================================================
downloaded 10 KB

trying URL 'http://tile.openstreetmap.org/19/522542/345781.png'
Content type 'image/png' length 1716 bytes
==================================================
downloaded 1716 bytes

trying URL 'http://tile.openstreetmap.org/19/522542/345782.png'
Content type 'image/png' length 9398 bytes
==================================================
downloaded 9398 bytes

xelatex mapmisc;
This is XeTeX, Version 3.14159265-2.6-0.99996 (TeX Live 2016) (preloaded format=xelatex)
 restricted \write18 enabled.
entering extended mode
(./mapmisc.tex
LaTeX2e <2017/01/01> patch level 3
Babel <3.9r> and hyphenation patterns for 83 language(s) loaded.
(/usr/local/texlive/2016/texmf-dist/tex/latex/base/article.cls
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
(/usr/local/texlive/2016/texmf-dist/tex/latex/base/size12.clo))
(/usr/local/texlive/2016/texmf-dist/tex/latex/graphics/graphicx.sty
(/usr/local/texlive/2016/texmf-dist/tex/latex/graphics/keyval.sty)
(/usr/local/texlive/2016/texmf-dist/tex/latex/graphics/graphics.sty
(/usr/local/texlive/2016/texmf-dist/tex/latex/graphics/trig.sty)
(/usr/local/texlive/2016/texmf-dist/tex/latex/graphics-cfg/graphics.cfg)
(/usr/local/texlive/2016/texmf-dist/tex/latex/graphics-def/xetex.def)))
(/usr/local/texlive/2016/texmf-dist/tex/latex/graphics/color.sty
(/usr/local/texlive/2016/texmf-dist/tex/latex/graphics-cfg/color.cfg))
(./framed.sty) (/usr/local/texlive/2016/texmf-dist/tex/latex/base/alltt.sty)
(/usr/local/texlive/2016/texmf-dist/tex/latex/geometry/geometry.sty
(/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/ifpdf.sty)
(/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/ifvtex.sty)
(/usr/local/texlive/2016/texmf-dist/tex/generic/ifxetex/ifxetex.sty))
(/usr/local/texlive/2016/texmf-dist/tex/latex/hyperref/hyperref.sty
(/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/hobsub-hyperref.sty
(/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/hobsub-generic.sty))
(/usr/local/texlive/2016/texmf-dist/tex/latex/oberdiek/auxhook.sty)
(/usr/local/texlive/2016/texmf-dist/tex/latex/oberdiek/kvoptions.sty)
(/usr/local/texlive/2016/texmf-dist/tex/latex/hyperref/pd1enc.def)
(/usr/local/texlive/2016/texmf-dist/tex/latex/latexconfig/hyperref.cfg)
(/usr/local/texlive/2016/texmf-dist/tex/latex/url/url.sty))

Package hyperref Message: Driver (autodetected): hxetex.

(/usr/local/texlive/2016/texmf-dist/tex/latex/hyperref/hxetex.def
(/usr/local/texlive/2016/texmf-dist/tex/latex/hyperref/puenc.def)
(/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/stringenc.sty)
(/usr/local/texlive/2016/texmf-dist/tex/latex/oberdiek/rerunfilecheck.sty))
(/usr/local/texlive/2016/texmf-dist/tex/latex/caption/caption.sty
(/usr/local/texlive/2016/texmf-dist/tex/latex/caption/caption3.sty))
(/usr/local/texlive/2016/texmf-dist/tex/latex/caption/subcaption.sty)
(/usr/local/texlive/2016/texmf-dist/tex/latex/upquote/upquote.sty
(/usr/local/texlive/2016/texmf-dist/tex/latex/base/textcomp.sty
(/usr/local/texlive/2016/texmf-dist/tex/latex/base/ts1enc.def)))
No file mapmisc.aux.
(/usr/local/texlive/2016/texmf-dist/tex/latex/base/ts1cmr.fd)
*geometry* driver: auto-detecting
*geometry* detected driver: xetex
(/usr/local/texlive/2016/texmf-dist/tex/latex/hyperref/nameref.sty
(/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/gettitlestring.sty))

Package hyperref Warning: Rerun to get /PageLabels entry.

(/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/se-ascii-print.def)
[1
xdvipdfmx:fatal: File ended prematurely


Output file removed.
*** Error code 138
make: Fatal error: Command failed for target `mapmisc.pdf'
Current working directory /home/ripley/R/packages/tests32/mapmisc.Rcheck/vign_test/mapmisc/vignettes
Error in buildVignettes(dir = "/home/ripley/R/packages/tests32/mapmisc.Rcheck/vign_test/mapmisc") : 
  running 'make' failed
Execution halted