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, 25 May 2018, version: 4.56.
OMP: Warning #96: Cannot form a team with 7 threads, using 2 instead.
OMP: Hint Consider unsetting KMP_DEVICE_THREAD_LIMIT (KMP_ALL_THREADS), KMP_TEAMS_THREAD_LIMIT, and OMP_THREAD_LIMIT (if any are set).
a_0 not supplied. One iteration IWLS of static glm model is used
OMP: Warning #96: Cannot form a team with 7 threads, using 2 instead.
OMP: Hint Consider unsetting KMP_DEVICE_THREAD_LIMIT (KMP_ALL_THREADS), KMP_TEAMS_THREAD_LIMIT, and OMP_THREAD_LIMIT (if any are set).
OMP: Warning #96: Cannot form a team with 7 threads, using 2 instead.
OMP: Hint Consider unsetting KMP_DEVICE_THREAD_LIMIT (KMP_ALL_THREADS), KMP_TEAMS_THREAD_LIMIT, and OMP_THREAD_LIMIT (if any are set).
OMP: Warning #96: Cannot form a team with 7 threads, using 2 instead.
OMP: Hint Consider unsetting KMP_DEVICE_THREAD_LIMIT (KMP_ALL_THREADS), KMP_TEAMS_THREAD_LIMIT, and OMP_THREAD_LIMIT (if any are set).
OMP: Warning #96: Cannot form a team with 7 threads, using 2 instead.
OMP: Hint Consider unsetting KMP_DEVICE_THREAD_LIMIT (KMP_ALL_THREADS), KMP_TEAMS_THREAD_LIMIT, and OMP_THREAD_LIMIT (if any are set).
OMP: Warning #96: Cannot form a team with 7 threads, using 2 instead.
OMP: Hint Consider unsetting KMP_DEVICE_THREAD_LIMIT (KMP_ALL_THREADS), KMP_TEAMS_THREAD_LIMIT, and OMP_THREAD_LIMIT (if any are set).
a_0 not supplied. One iteration IWLS of static glm model is used
OMP: Warning #96: Cannot form a team with 7 threads, using 2 instead.
OMP: Hint Consider unsetting KMP_DEVICE_THREAD_LIMIT (KMP_ALL_THREADS), KMP_TEAMS_THREAD_LIMIT, and OMP_THREAD_LIMIT (if any are set).
OMP: Warning #96: Cannot form a team with 7 threads, using 2 instead.
OMP: Hint Consider unsetting KMP_DEVICE_THREAD_LIMIT (KMP_ALL_THREADS), KMP_TEAMS_THREAD_LIMIT, and OMP_THREAD_LIMIT (if any are set).
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
OMP: Warning #96: Cannot form a team with 7 threads, using 2 instead.
OMP: Hint Consider unsetting KMP_DEVICE_THREAD_LIMIT (KMP_ALL_THREADS), KMP_TEAMS_THREAD_LIMIT, and OMP_THREAD_LIMIT (if any are set).
a_0 not supplied. One iteration IWLS of static glm model is used
OMP: Warning #96: Cannot form a team with 7 threads, using 2 instead.
OMP: Hint Consider unsetting KMP_DEVICE_THREAD_LIMIT (KMP_ALL_THREADS), KMP_TEAMS_THREAD_LIMIT, and OMP_THREAD_LIMIT (if any are set).
a_0 not supplied. One iteration IWLS of static glm model is used
OMP: Warning #96: Cannot form a team with 7 threads, using 2 instead.
OMP: Hint Consider unsetting KMP_DEVICE_THREAD_LIMIT (KMP_ALL_THREADS), KMP_TEAMS_THREAD_LIMIT, and OMP_THREAD_LIMIT (if any are set).
a_0 not supplied. One iteration IWLS of static glm model is used
OMP: Warning #96: Cannot form a team with 7 threads, using 2 instead.
OMP: Hint Consider unsetting KMP_DEVICE_THREAD_LIMIT (KMP_ALL_THREADS), KMP_TEAMS_THREAD_LIMIT, and OMP_THREAD_LIMIT (if any are set).
OMP: Warning #96: Cannot form a team with 7 threads, using 2 instead.
OMP: Hint Consider unsetting KMP_DEVICE_THREAD_LIMIT (KMP_ALL_THREADS), KMP_TEAMS_THREAD_LIMIT, and OMP_THREAD_LIMIT (if any are set).
OMP: Warning #96: Cannot form a team with 7 threads, using 2 instead.
OMP: Hint Consider unsetting KMP_DEVICE_THREAD_LIMIT (KMP_ALL_THREADS), KMP_TEAMS_THREAD_LIMIT, and OMP_THREAD_LIMIT (if any are set).
OMP: Warning #96: Cannot form a team with 7 threads, using 2 instead.
OMP: Hint Consider unsetting KMP_DEVICE_THREAD_LIMIT (KMP_ALL_THREADS), KMP_TEAMS_THREAD_LIMIT, and OMP_THREAD_LIMIT (if any are set).
OMP: Warning #96: Cannot form a team with 7 threads, using 2 instead.
OMP: Hint Consider unsetting KMP_DEVICE_THREAD_LIMIT (KMP_ALL_THREADS), KMP_TEAMS_THREAD_LIMIT, and OMP_THREAD_LIMIT (if any are set).
OMP: Warning #96: Cannot form a team with 7 threads, using 2 instead.
OMP: Hint Consider unsetting KMP_DEVICE_THREAD_LIMIT (KMP_ALL_THREADS), KMP_TEAMS_THREAD_LIMIT, and OMP_THREAD_LIMIT (if any are set).
a_0 not supplied. One iteration IWLS of static glm model is used
OMP: Warning #96: Cannot form a team with 7 threads, using 2 instead.
OMP: Hint Consider unsetting KMP_DEVICE_THREAD_LIMIT (KMP_ALL_THREADS), KMP_TEAMS_THREAD_LIMIT, and OMP_THREAD_LIMIT (if any are set).
OMP: Warning #96: Cannot form a team with 7 threads, using 2 instead.
OMP: Hint Consider unsetting KMP_DEVICE_THREAD_LIMIT (KMP_ALL_THREADS), KMP_TEAMS_THREAD_LIMIT, and OMP_THREAD_LIMIT (if any are set).
OMP: Warning #96: Cannot form a team with 7 threads, using 2 instead.
OMP: Hint Consider unsetting KMP_DEVICE_THREAD_LIMIT (KMP_ALL_THREADS), KMP_TEAMS_THREAD_LIMIT, and OMP_THREAD_LIMIT (if any are set).
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
OMP: Warning #96: Cannot form a team with 12 threads, using 2 instead.
OMP: Hint Consider unsetting KMP_DEVICE_THREAD_LIMIT (KMP_ALL_THREADS), KMP_TEAMS_THREAD_LIMIT, and OMP_THREAD_LIMIT (if any are set).
OMP: Warning #96: Cannot form a team with 7 threads, using 2 instead.
OMP: Hint Consider unsetting KMP_DEVICE_THREAD_LIMIT (KMP_ALL_THREADS), KMP_TEAMS_THREAD_LIMIT, and OMP_THREAD_LIMIT (if any are set).
OMP: Warning #96: Cannot form a team with 7 threads, using 2 instead.
OMP: Hint Consider unsetting KMP_DEVICE_THREAD_LIMIT (KMP_ALL_THREADS), KMP_TEAMS_THREAD_LIMIT, and OMP_THREAD_LIMIT (if any are set).
OMP: Warning #96: Cannot form a team with 7 threads, using 2 instead.
OMP: Hint Consider unsetting KMP_DEVICE_THREAD_LIMIT (KMP_ALL_THREADS), KMP_TEAMS_THREAD_LIMIT, and OMP_THREAD_LIMIT (if any are set).
OMP: Warning #96: Cannot form a team with 7 threads, using 2 instead.
OMP: Hint Consider unsetting KMP_DEVICE_THREAD_LIMIT (KMP_ALL_THREADS), KMP_TEAMS_THREAD_LIMIT, and OMP_THREAD_LIMIT (if any are set).
OMP: Warning #96: Cannot form a team with 7 threads, using 2 instead.
OMP: Hint Consider unsetting KMP_DEVICE_THREAD_LIMIT (KMP_ALL_THREADS), KMP_TEAMS_THREAD_LIMIT, and OMP_THREAD_LIMIT (if any are set).
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
OMP: Warning #96: Cannot form a team with 7 threads, using 2 instead.
OMP: Hint Consider unsetting KMP_DEVICE_THREAD_LIMIT (KMP_ALL_THREADS), KMP_TEAMS_THREAD_LIMIT, and OMP_THREAD_LIMIT (if any are set).
You are recommended to install the tinytex package to build PDF.FALSE
Latexmk: This is Latexmk, John Collins, 25 May 2018, version: 4.56.
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, 25 May 2018, version: 4.56.
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) (preloaded format=pdflatex)
 restricted \write18 enabled.
entering extended mode
Collected error summary (may duplicate other messages):
  pdflatex: Command for 'pdflatex' gave return code 1
      Refer to 'ddhazard.log' for details
Latexmk: Use the -f option to force complete processing,
 unless error was exceeding maximum runs, or warnings treated as errors.
=== TeX engine is 'pdfTeX'
Latexmk: Errors, so I did not complete making targets
! Missing $ inserted.
<inserted text> 
                $
l.232 ...}argmaxu\}{[}1{]}\{\underset{#1}{\argmax}
                                                  :\} 
Here is how much of TeX's memory you used:
 13310 strings out of 493232
 194381 string characters out of 6147017
 300465 words of memory out of 5000000
 16954 multiletter control sequences out of 15000+600000
 41485 words of font info for 52 fonts, out of 8000000 for 9000
 805 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