Error(s) in re-building vignettes:
--- re-building ‘rLakeHabitat_Introduction.Rmd’ using rmarkdown
2026-08-05 16:16:02.815 R[79824:462053] XType: Using static font registry.

Quitting from rLakeHabitat_Introduction.Rmd:135-178 [unnamed-chunk-5]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `geom_sf()`:
! Problem while converting geom to grob.
ℹ Error occurred in the 1st layer.
Caused by error:
! number of columns of matrices must match (see arg 2)
---
Backtrace:
     ▆
  1. ├─base::withVisible(knit_print(x, ...))
  2. ├─knitr::knit_print(x, ...)
  3. └─knitr:::knit_print.default(x, ...)
  4.   └─knitr::normal_print(x)
  5.     ├─base::print(x)
  6.     └─ggplot2 (local) `print.ggplot2::ggplot`(x)
  7.       ├─ggplot2::ggplot_gtable(data)
  8.       └─ggplot2 (local) `ggplot_gtable.ggplot2::ggplot_built`(data)
  9.         └─ggplot2:::by_layer(...)
 10.           ├─rlang::try_fetch(...)
 11.           │ ├─base::tryCatch(...)
 12.           │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
 13.           │ │   └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
 14.           │ │     └─base (local) doTryCatch(return(expr), name, parentenv, handler)
 15.           │ └─base::withCallingHandlers(...)
 16.           └─ggplot2 (local) f(l = layers[[i]], d = data[[i]])
 17.             └─l$draw_geom(d, layout)
 18.               └─ggplot2 (local) draw_geom(..., self = self)
 19.                 └─self$geom$draw_layer(...)
 20.                   └─ggplot2 (local) draw_layer(..., self = self)
 21.                     └─base::lapply(...)
 22.                       └─ggplot2 (local) FUN(X[[i]], ...)
 23.                         ├─rlang::inject(self$draw_panel(data, panel_params, coord, !!!params))
 24.                         └─self$draw_panel(data, panel_params, coord, na.rm = FALSE, legend = "other")
 25.                           └─ggplot2 (local) draw_panel(..., self = self)
 26.                             ├─sf::st_as_grob(data$geometry, pch = data$shape, gp = gp, arrow = arrow)
 27.                             └─sf:::st_as_grob.sfc_MULTIPOLYGON(...)
 28.                               ├─base::do.call(rbind, x)
 29.                               └─base (local) `<fn>`(...)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Error: processing vignette 'rLakeHabitat_Introduction.Rmd' failed with diagnostics:
Problem while converting geom to grob.
ℹ Error occurred in the 1st layer.
Caused by error:
! number of columns of matrices must match (see arg 2)
--- failed re-building ‘rLakeHabitat_Introduction.Rmd’

SUMMARY: processing the following file failed:
  ‘rLakeHabitat_Introduction.Rmd’

Error: Vignette re-building failed.
Execution halted