Error(s) in re-building vignettes:
  ...
--- re-building ‘Examples.Rnw’ using knitr
Error: processing vignette 'Examples.Rnw' failed with diagnostics:
Running 'texi2dvi' on 'Examples.tex' failed.
LaTeX errors:
! Undefined control sequence.
l.121 \hldef
            {sim.seg} \hlkwb{<-} \hlkwa{function}\hldef{(}\hlkwc{seg.mean}\h...

? 
! Emergency stop.
l.121 
      
End of file on the terminal!

!  ==> Fatal error occurred, no output PDF file produced!
--- failed re-building ‘Examples.Rnw’

--- re-building ‘Spatial_correlation.Rmd’ using knitr
** Processing: figure/unnamed-chunk-5-1.png
504x504 pixels, 8 bits/pixel, 256 colors in palette
Reducing image to 8 bits/pixel, grayscale
Input IDAT size = 16904 bytes
Input file size = 17786 bytes

Trying:
  zc = 9  zm = 8  zs = 0  f = 0		IDAT size = 15577
  zc = 9  zm = 8  zs = 1  f = 0
  zc = 1  zm = 8  zs = 2  f = 0
  zc = 9  zm = 8  zs = 3  f = 0
  zc = 9  zm = 8  zs = 0  f = 5
  zc = 9  zm = 8  zs = 1  f = 5
  zc = 1  zm = 8  zs = 2  f = 5
  zc = 9  zm = 8  zs = 3  f = 5
                               
Selecting parameters:
  zc = 9  zm = 8  zs = 0  f = 0		IDAT size = 15577

Output IDAT size = 15577 bytes (1327 bytes decrease)
Output file size = 15655 bytes (2131 bytes = 11.98% decrease)

** Processing: figure/unnamed-chunk-6-1.png
504x504 pixels, 3x8 bits/pixel, RGB
Input IDAT size = 47299 bytes
Input file size = 47437 bytes

Trying:
  zc = 9  zm = 8  zs = 0  f = 0		IDAT size = 41487
  zc = 9  zm = 8  zs = 1  f = 0
  zc = 1  zm = 8  zs = 2  f = 0
  zc = 9  zm = 8  zs = 3  f = 0
  zc = 9  zm = 8  zs = 0  f = 5
  zc = 9  zm = 8  zs = 1  f = 5
  zc = 1  zm = 8  zs = 2  f = 5
  zc = 9  zm = 8  zs = 3  f = 5
                               
Selecting parameters:
  zc = 9  zm = 8  zs = 0  f = 0		IDAT size = 41487

Output IDAT size = 41487 bytes (5812 bytes decrease)
Output file size = 41565 bytes (5872 bytes = 12.38% decrease)

** Processing: figure/unnamed-chunk-7-1.png
504x504 pixels, 3x8 bits/pixel, RGB
Input IDAT size = 50470 bytes
Input file size = 50620 bytes

Trying:
  zc = 9  zm = 8  zs = 0  f = 0		IDAT size = 44293
  zc = 9  zm = 8  zs = 1  f = 0
  zc = 1  zm = 8  zs = 2  f = 0
  zc = 9  zm = 8  zs = 3  f = 0
  zc = 9  zm = 8  zs = 0  f = 5
  zc = 9  zm = 8  zs = 1  f = 5
  zc = 1  zm = 8  zs = 2  f = 5
  zc = 9  zm = 8  zs = 3  f = 5
                               
Selecting parameters:
  zc = 9  zm = 8  zs = 0  f = 0		IDAT size = 44293

Output IDAT size = 44293 bytes (6177 bytes decrease)
Output file size = 44371 bytes (6249 bytes = 12.34% decrease)

** Processing: figure/unnamed-chunk-8-1.png
720x504 pixels, 3x8 bits/pixel, RGB
Input IDAT size = 73444 bytes
Input file size = 73618 bytes

Trying:
  zc = 9  zm = 8  zs = 0  f = 0		IDAT size = 65435
  zc = 9  zm = 8  zs = 1  f = 0
  zc = 1  zm = 8  zs = 2  f = 0
  zc = 9  zm = 8  zs = 3  f = 0
  zc = 9  zm = 8  zs = 0  f = 5
  zc = 9  zm = 8  zs = 1  f = 5
  zc = 1  zm = 8  zs = 2  f = 5
  zc = 9  zm = 8  zs = 3  f = 5
                               
Selecting parameters:
  zc = 9  zm = 8  zs = 0  f = 0		IDAT size = 65435

Output IDAT size = 65435 bytes (8009 bytes decrease)
Output file size = 65513 bytes (8105 bytes = 11.01% decrease)

--- finished re-building ‘Spatial_correlation.Rmd’

--- re-building ‘Worst_case.Rmd’ using knitr
** Processing: figure/unnamed-chunk-3-1.png
504x216 pixels, 3x8 bits/pixel, RGB
Input IDAT size = 26058 bytes
Input file size = 26172 bytes

Trying:
  zc = 9  zm = 8  zs = 0  f = 0		IDAT size = 20771
  zc = 9  zm = 8  zs = 1  f = 0
  zc = 1  zm = 8  zs = 2  f = 0
  zc = 9  zm = 8  zs = 3  f = 0
  zc = 9  zm = 8  zs = 0  f = 5
  zc = 9  zm = 8  zs = 1  f = 5
  zc = 1  zm = 8  zs = 2  f = 5
  zc = 9  zm = 8  zs = 3  f = 5
                               
Selecting parameters:
  zc = 9  zm = 8  zs = 0  f = 0		IDAT size = 20771

Output IDAT size = 20771 bytes (5287 bytes decrease)
Output file size = 20849 bytes (5323 bytes = 20.34% decrease)

--- finished re-building ‘Worst_case.Rmd’

SUMMARY: processing the following file failed:
  ‘Examples.Rnw’

Error: Vignette re-building failed.
Execution halted