Error in re-building vignettes:
  ...
This is mgcv 1.8-23. For overview type 'help("mgcv-package")'.
a_0 not supplied. One iteration IWLS of static glm model is used
a_0 not supplied. One iteration IWLS of static glm model is used
a_0 not supplied. One iteration IWLS of static glm model is used
a_0 not supplied. One iteration IWLS of static glm model is used
a_0 not supplied. One iteration IWLS of static glm model is used
a_0 not supplied. One iteration IWLS of static glm model is used
a_0 not supplied. One iteration IWLS of static glm model is used
a_0 not supplied. One iteration IWLS of static glm model is used
a_0 not supplied. One iteration IWLS of static glm model is used
You are recommended to install the tinytex package to build PDF.FALSE
Latexmk: This is Latexmk, John Collins, 1 January 2015, version: 4.41.
File::Glob::glob() will disappear in perl 5.30. Use File::Glob::bsd_glob() instead. at /usr/bin/latexmk line 7482.
a_0 not supplied. One iteration IWLS of static glm model is used
a_0 not supplied. One iteration IWLS of static glm model is used
a_0 not supplied. One iteration IWLS of static glm model is used
a_0 not supplied. One iteration IWLS of static glm model is used
a_0 not supplied. One iteration IWLS of static glm model is used
a_0 not supplied. One iteration IWLS of static glm model is used
a_0 not supplied. One iteration IWLS of static glm model is used
a_0 not supplied. One iteration IWLS of static glm model is used
a_0 not supplied. One iteration IWLS of static glm model is used
a_0 not supplied. One iteration IWLS of static glm model is used
a_0 not supplied. One iteration IWLS of static glm model is used
a_0 not supplied. One iteration IWLS of static glm model is used
a_0 not supplied. One iteration IWLS of static glm model is used
You are recommended to install the tinytex package to build PDF.FALSE
Latexmk: This is Latexmk, John Collins, 1 January 2015, version: 4.41.
File::Glob::glob() will disappear in perl 5.30. Use File::Glob::bsd_glob() instead. at /usr/bin/latexmk line 7482.
a_0 not supplied. One iteration IWLS of static glm model is used
a_0 not supplied. One iteration IWLS of static glm model is used
You are recommended to install the tinytex package to build PDF.FALSE
Latexmk: This is Latexmk, John Collins, 1 January 2015, version: 4.41.
Rule 'pdflatex': File changes, etc:
   Changed files, or newly in use since previous run(s):
      'ddhazard.aux'
   Non-existent destination files:
      'ddhazard.pdf'
------------
Run number 1 of rule 'pdflatex'
------------
------------
Running 'pdflatex  -halt-on-error -interaction=batchmode -recorder  "ddhazard.tex"'
------------
Latexmk: applying rule 'pdflatex'...
This is pdfTeX, Version 3.14159265-2.6-1.40.19 (TeX Live 2018/Debian) (preloaded format=pdflatex)
 restricted \write18 enabled.
entering extended mode
Collected error summary (may duplicate other messages):
  pdflatex: Command for 'pdflatex' gave return code 256
Latexmk: Use the -f option to force complete processing,
 unless error was exceeding maximum runs of latex/pdflatex.
Latexmk: Errors, so I did not complete making targets

Latexmk, John Collins, 1 January 2015. Version 4.41
! Missing $ inserted.
<inserted text> 
                $
l.232 ...}argmaxu\}{[}1{]}\{\underset{#1}{\argmax}
                                                  :\} 
Here is how much of TeX's memory you used:
 13303 strings out of 492648
 193233 string characters out of 6132024
 301619 words of memory out of 5000000
 16980 multiletter control sequences out of 15000+600000
 41485 words of font info for 52 fonts, out of 8000000 for 9000
 1141 hyphenation exceptions out of 8191
 32i,5n,38p,254b,270s stack positions out of 5000i,500n,10000p,200000b,80000s

Error: processing vignette ‘ddhazard.Rmd’ failed with diagnostics:
Failed to compile ddhazard.tex. See ddhazard.log for more info.
Execution halted