Error in re-building vignettes:
  ...
Warning in engine$weave(file, quiet = quiet, encoding = enc) :
  Pandoc (>= 1.12.3) and/or pandoc-citeproc not available. Falling back to R Markdown v1.
Warning in engine$weave(file, quiet = quiet, encoding = enc) :
  Pandoc (>= 1.12.3) and/or pandoc-citeproc not available. Falling back to R Markdown v1.
Linking to GEOS 3.6.1, GDAL 2.2.0, proj.4 4.9.3

Attaching package: 'dplyr'

The following objects are masked from 'package:stats':

    filter, lag

The following objects are masked from 'package:base':

    intersect, setdiff, setequal, union

Downloading GitHub repo tidyverse/ggplot2@master
from URL https://api.github.com/repos/tidyverse/ggplot2/zipball/master
Installing ggplot2
Downloading GitHub repo hadley/scales@master
from URL https://api.github.com/repos/hadley/scales/zipball/master
Installing scales
'/home/ripley/R/cc/bin/R' --no-site-file --no-environ --no-save  \
  --no-restore --quiet CMD INSTALL  \
  '/tmp/RtmpNrayqj/devtools1283481acf2/hadley-scales-6db7b6f'  \
  --library='/home/ripley/R/Lib32' --install-tests 

* installing *source* package ‘scales’ ...
** libs
CC -library=stlport4 -I/home/ripley/R/cc/include -DNDEBUG  -I"/home/ripley/R/Lib32/Rcpp/include" -I/usr/local/include   -KPIC  -O -xlibmil -xtarget=native -nofstore  -c RcppExports.cpp -o RcppExports.o
"/home/ripley/R/Lib32/Rcpp/include/RcppCommon.h", line 70: Warning: Last line in file "/home/ripley/R/Lib32/Rcpp/include/Rcpp/utils/tinyformat.h" is not terminated with a newline.
"/home/ripley/R/Lib32/Rcpp/include/Rcpp/Interrupt.h", line 60: Warning (Anachronism): Formal argument fun of type extern "C" void(*)(void*) in call to R_ToplevelExec(extern "C" void(*)(void*), void*) is being passed void(*)(void*).
"/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 219: Error: The function "snprintf" must have a prototype.
"/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 220: Error: The function "snprintf" must have a prototype.
"/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 221: Error: The function "snprintf" must have a prototype.
"/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 241: Error: The function "snprintf" must have a prototype.
"/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 249: Error: The function "snprintf" must have a prototype.
"/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 95: Warning: enc hides Rcpp::String::enc.
"/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 107: Warning: enc hides Rcpp::String::enc.
"/home/ripley/R/Lib32/Rcpp/include/Rcpp/date_datetime/Datetime.h", line 83: Error: snprintf is not a member of file level.
"/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
"/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
"/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
"/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
"/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
"/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
"/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 76: Error: expm1 is not a member of file level.
"/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 87: Error: expm1 is not a member of file level.
"/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: expm1 is not a member of file level.
"/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: log1p is not a member of file level.
"/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 63: Error: expm1 is not a member of file level.
"/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: expm1 is not a member of file level.
"/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
"/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
"/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 65: Error: log1p is not a member of file level.
"/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 81: Error: log1p is not a member of file level.
"/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 95: Error: log1p is not a member of file level.
"/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 97: Error: log1p is not a member of file level.
"/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 117: Error: log1p is not a member of file level.
Compilation aborted, too many Error messages.
*** Error code 2
make: Fatal error: Command failed for target `RcppExports.o'
Current working directory /tmp/RtmpNrayqj/devtools1283481acf2/hadley-scales-6db7b6f/src
ERROR: compilation failed for package ‘scales’
* removing ‘/home/ripley/R/Lib32/scales’
* restoring previous ‘/home/ripley/R/Lib32/scales’
Installation failed: Command failed (1)
'/home/ripley/R/cc/bin/R' --no-site-file --no-environ --no-save  \
  --no-restore --quiet CMD INSTALL  \
  '/tmp/RtmpNrayqj/devtools128359e54568/tidyverse-ggplot2-32e699e'  \
  --library='/home/ripley/R/Lib32' --install-tests 

* installing *source* package ‘ggplot2’ ...
** R
** data
*** moving datasets to lazyload DB
** inst
** tests
** preparing package for lazy loading
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : 
  namespace ‘scales’ 0.4.1 is being loaded, but >= 0.4.1.9002 is required
ERROR: lazy loading failed for package ‘ggplot2’
* removing ‘/home/ripley/R/Lib32/ggplot2’
* restoring previous ‘/home/ripley/R/Lib32/ggplot2’
Installation failed: Command failed (1)
Downloading MP data
Downloading constituency data
Warning: Column `party_id` joining character vector and factor, coercing into character vector
Quitting from lines 67-93 (introduction.Rmd) 
Error: processing vignette 'introduction.Rmd' failed with diagnostics:
could not find function "geom_sf"
Execution halted