Error(s) in re-building vignettes:
--- re-building 'Behaviour.Rmd' using rmarkdown
--- finished re-building 'Behaviour.Rmd'

--- re-building 'ExtractStorms.Rmd' using rmarkdown
--- finished re-building 'ExtractStorms.Rmd'

--- re-building 'Models.Rmd' using rmarkdown
--- finished re-building 'Models.Rmd'

--- re-building 'SpatialBehaviour.Rmd' using rmarkdown

Quitting from SpatialBehaviour.Rmd:132-134 [unnamed-chunk-10]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `h()`:
! error in evaluating the argument 'x' in selecting a method for function 'ext': error in evaluating the argument 'x' in selecting a method for function 'project': [project] Cannot do this transformation
---
Backtrace:
     ▆
  1. ├─StormR::plotBehaviour(st, ss$PAM_MSW, dynamicPlot = TRUE)
  2. │ └─leaflet::addRasterImage(map, rasterProduct, colors = pal, opacity = 0.8)
  3. │   └─leaflet:::addRasterImage_SpatRaster(...)
  4. │     ├─terra::ext(...)
  5. │     ├─terra::project(...)
  6. │     ├─terra::project(...)
  7. │     └─terra::project(...)
  8. │       └─terra (local) .local(x, ...)
  9. │         └─terra:::messages(x, "project")
 10. │           └─terra:::error(f, x@pntr$getError())
 11. │             └─base::stop("[", f, "] ", emsg, ..., call. = FALSE)
 12. ├─base::.handleSimpleError(...)
 13. │ └─base (local) h(simpleError(msg, call))
 14. └─base::.handleSimpleError(...)
 15.   └─base (local) h(simpleError(msg, call))
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Error: processing vignette 'SpatialBehaviour.Rmd' failed with diagnostics:
error in evaluating the argument 'x' in selecting a method for function 'ext': error in evaluating the argument 'x' in selecting a method for function 'project': [project] Cannot do this transformation
--- failed re-building 'SpatialBehaviour.Rmd'

--- re-building 'TemporalBehaviour.Rmd' using rmarkdown
--- finished re-building 'TemporalBehaviour.Rmd'

SUMMARY: processing the following file failed:
  'SpatialBehaviour.Rmd'

Error: Vignette re-building failed.
Execution halted