Error(s) in re-building vignettes:
  ...
--- re-building ‘SWIM-vignette.Rmd’ using rmarkdown
Warning: Computation failed in `stat_ecdf()`:
there is no package called 'spatstat'
Warning: Computation failed in `stat_ecdf()`:
there is no package called 'spatstat'
Warning: Computation failed in `stat_ecdf()`:
there is no package called 'spatstat'
Warning: Computation failed in `stat_ecdf()`:
there is no package called 'spatstat'
Warning in block_exec(params) :
  Failed to tidy R code in chunk 'loading-packages'. Reason:
Error in loadNamespace(name) : there is no package called 'formatR'

Warning in block_exec(params) :
  Failed to tidy R code in chunk 'CM-data-head'. Reason:
Error in loadNamespace(name) : there is no package called 'formatR'

Warning in block_exec(params) :
  Failed to tidy R code in chunk 'CM-stress-VaR'. Reason:
Error in loadNamespace(name) : there is no package called 'formatR'

Warning in block_exec(params) :
  Failed to tidy R code in chunk 'CM-stress-VaR-check-ES'. Reason:
Error in loadNamespace(name) : there is no package called 'formatR'

Warning in block_exec(params) :
  Failed to tidy R code in chunk 'CM-stress-VaR-ES'. Reason:
Error in loadNamespace(name) : there is no package called 'formatR'

Warning in block_exec(params) :
  Failed to tidy R code in chunk 'CM-summary'. Reason:
Error in loadNamespace(name) : there is no package called 'formatR'

Warning in block_exec(params) :
  Failed to tidy R code in chunk 'CM-specs'. Reason:
Error in loadNamespace(name) : there is no package called 'formatR'

Warning in block_exec(params) :
  Failed to tidy R code in chunk 'CM-histL'. Reason:
Error in loadNamespace(name) : there is no package called 'formatR'

Warning in block_exec(params) :
  Failed to tidy R code in chunk 'CM-plot1'. Reason:
Error in loadNamespace(name) : there is no package called 'formatR'

Warning: Computation failed in `stat_ecdf()`:
there is no package called 'spatstat'
Warning: Computation failed in `stat_ecdf()`:
there is no package called 'spatstat'
Warning: Computation failed in `stat_ecdf()`:
there is no package called 'spatstat'
Warning: Computation failed in `stat_ecdf()`:
there is no package called 'spatstat'
Warning in block_exec(params) :
  Failed to tidy R code in chunk 'CM-sensitivity0'. Reason:
Error in loadNamespace(name) : there is no package called 'formatR'

Warning in block_exec(params) :
  Failed to tidy R code in chunk 'CM-sensitivity1'. Reason:
Error in loadNamespace(name) : there is no package called 'formatR'

Warning in block_exec(params) :
  Failed to tidy R code in chunk 'CM-sensitivity2'. Reason:
Error in loadNamespace(name) : there is no package called 'formatR'

Warning in block_exec(params) :
  Failed to tidy R code in chunk 'CM-rank'. Reason:
Error in loadNamespace(name) : there is no package called 'formatR'

Warning in block_exec(params) :
  Failed to tidy R code in chunk 'summary-sens-H2'. Reason:
Error in loadNamespace(name) : there is no package called 'formatR'

Warning in block_exec(params) :
  Failed to tidy R code in chunk 'CM-joint-stress-VaR-2'. Reason:
Error in loadNamespace(name) : there is no package called 'formatR'

Warning in block_exec(params) :
  Failed to tidy R code in chunk 'CM-joint-stress-VaR-2-effect'. Reason:
Error in loadNamespace(name) : there is no package called 'formatR'

pandoc-citeproc: Error in $: Incompatible API versions: encoded with [1,20] but attempted to decode with [1,17,5,4].
CallStack (from HasCallStack):
  error, called at ./Text/Pandoc/JSON.hs:111:48 in pandoc-types-1.17.5.4-5tHZ3B61A58JaKOMxwGQR4:Text.Pandoc.JSON
Error running filter /usr/bin/pandoc-citeproc:
Filter returned error status 1
Error: processing vignette 'SWIM-vignette.Rmd' failed with diagnostics:
pandoc document conversion failed with error 83
--- failed re-building ‘SWIM-vignette.Rmd’

SUMMARY: processing the following file failed:
  ‘SWIM-vignette.Rmd’

Error: Vignette re-building failed.
Execution halted