Error(s) in re-building vignettes:
--- re-building 'external-validity.Rmd' using rmarkdown

Quitting from external-validity.Rmd:115-122 [contour_plot]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `metR::geom_text_contour()`:
! Problem while converting geom to grob.
ℹ Error occurred in the 2nd layer.
Caused by error in `[.data.table`:
! attempt access index 18/18 in VECTOR_ELT
---
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(...)
 25.                           └─metR (local) draw_panel(...)
 26.                             ├─data[, `:=`(N, .N), by = .(group, piece)]
 27.                             └─data.table:::`[.data.table`(...)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Error: processing vignette 'external-validity.Rmd' failed with diagnostics:
Problem while converting geom to grob.
ℹ Error occurred in the 2nd layer.
Caused by error in `[.data.table`:
! attempt access index 18/18 in VECTOR_ELT
--- failed re-building 'external-validity.Rmd'

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

Quitting from survey.Rmd:158-165 [unnamed-chunk-12]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `metR::geom_text_contour()`:
! Problem while converting geom to grob.
ℹ Error occurred in the 2nd layer.
Caused by error in `[.data.table`:
! attempt access index 18/18 in VECTOR_ELT
---
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(...)
 25.                           └─metR (local) draw_panel(...)
 26.                             ├─data[, `:=`(N, .N), by = .(group, piece)]
 27.                             └─data.table:::`[.data.table`(...)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Error: processing vignette 'survey.Rmd' failed with diagnostics:
Problem while converting geom to grob.
ℹ Error occurred in the 2nd layer.
Caused by error in `[.data.table`:
! attempt access index 18/18 in VECTOR_ELT
--- failed re-building 'survey.Rmd'

SUMMARY: processing the following files failed:
  'external-validity.Rmd' 'survey.Rmd'

Error: Vignette re-building failed.
Execution halted