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

Quitting from Legacy_functions.Rmd:56-59 [unnamed-chunk-2]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `Cairo::Cairo()`:
! Graphics API version mismatch
---
Backtrace:
     ▆
  1. ├─base::print(gg_rasterized)
  2. ├─ggplot2:::print.ggplot(gg_rasterized)
  3. │ ├─grid::grid.draw(gtable)
  4. │ └─grid:::grid.draw.gTree(gtable)
  5. │   └─grDevices::recordGraphics(drawGTree(x), list(x = x), getNamespace("grid"))
  6. ├─grid:::drawGTree(x)
  7. │ ├─grid::grid.draw(x$children[[i]], recording = FALSE)
  8. │ └─grid:::grid.draw.gTree(x$children[[i]], recording = FALSE)
  9. │   └─grDevices::recordGraphics(drawGTree(x), list(x = x), getNamespace("grid"))
 10. ├─grid:::drawGTree(x)
 11. │ ├─grid::grid.draw(x$children[[i]], recording = FALSE)
 12. │ └─grid:::grid.draw.gTree(x$children[[i]], recording = FALSE)
 13. │   └─grDevices::recordGraphics(drawGTree(x), list(x = x), getNamespace("grid"))
 14. ├─grid:::drawGTree(x)
 15. │ ├─grid::grid.draw(x$children[[i]], recording = FALSE)
 16. │ └─grid:::grid.draw.grob(x$children[[i]], recording = FALSE)
 17. │   └─grDevices::recordGraphics(drawGrob(x), list(x = x), getNamespace("grid"))
 18. └─grid:::drawGrob(x)
 19.   ├─grid:::preDraw(x)
 20.   └─grid:::preDraw.grob(x)
 21.     ├─grid::makeContext(x)
 22.     └─ggrastr:::makeContext.rasteriser(x)
 23.       └─Cairo::Cairo(...)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Error: processing vignette 'Legacy_functions.Rmd' failed with diagnostics:
Graphics API version mismatch
--- failed re-building 'Legacy_functions.Rmd'

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

Quitting from Raster_geoms.Rmd:30-38 [unnamed-chunk-1]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `Cairo::Cairo()`:
! Graphics API version mismatch
---
Backtrace:
     ▆
  1. ├─tools:::.buildOneVignette(...)
  2. │ ├─base::tryCatch(...)
  3. │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
  4. │ │   └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
  5. │ │     └─base (local) doTryCatch(return(expr), name, parentenv, handler)
  6. │ └─engine$weave(file, quiet = quiet, encoding = enc)
  7. │   └─knitr:::vweave_rmarkdown(...)
  8. │     └─rmarkdown::render(...)
  9. │       └─knitr::knit(knit_input, knit_output, envir = envir, quiet = quiet)
 10. │         └─knitr:::process_file(text, output)
 11. │           ├─xfun:::handle_error(...)
 12. │           ├─base::withCallingHandlers(...)
 13. │           └─knitr:::process_group(group)
 14. │             └─knitr:::call_block(x)
 15. │               └─knitr:::block_exec(params)
 16. │                 └─knitr:::eng_r(options)
 17. │                   ├─knitr:::in_input_dir(...)
 18. │                   │ └─knitr:::in_dir(input_dir(), expr)
 19. │                   └─knitr (local) evaluate(...)
 20. │                     └─evaluate::evaluate(...)
 21. │                       ├─base::withRestarts(...)
 22. │                       │ └─base (local) withRestartList(expr, restarts)
 23. │                       │   ├─base (local) withOneRestart(withRestartList(expr, restarts[-nr]), restarts[[nr]])
 24. │                       │   │ └─base (local) doWithOneRestart(return(expr), restart)
 25. │                       │   └─base (local) withRestartList(expr, restarts[-nr])
 26. │                       │     └─base (local) withOneRestart(expr, restarts[[1L]])
 27. │                       │       └─base (local) doWithOneRestart(return(expr), restart)
 28. │                       ├─evaluate:::with_handlers(...)
 29. │                       │ ├─base::eval(call)
 30. │                       │ │ └─base::eval(call)
 31. │                       │ └─base::withCallingHandlers(...)
 32. │                       └─watcher$print_value(ev$value, ev$visible, envir)
 33. │                         ├─base::withVisible(handle_value(handler, value, visible, envir))
 34. │                         └─evaluate:::handle_value(handler, value, visible, envir)
 35. │                           └─handler$value(value, visible)
 36. │                             └─knitr (local) fun(x, options = options)
 37. │                               ├─base::withVisible(knit_print(x, ...))
 38. │                               ├─knitr::knit_print(x, ...)
 39. │                               └─knitr:::knit_print.default(x, ...)
 40. │                                 └─knitr::normal_print(x)
 41. │                                   ├─base::print(x)
 42. │                                   └─ggplot2:::print.ggplot(x)
 43. │                                     ├─grid::grid.draw(gtable)
 44. │                                     └─grid:::grid.draw.gTree(gtable)
 45. │                                       └─grDevices::recordGraphics(drawGTree(x), list(x = x), getNamespace("grid"))
 46. ├─grid:::drawGTree(x)
 47. │ ├─grid::grid.draw(x$children[[i]], recording = FALSE)
 48. │ └─grid:::grid.draw.gTree(x$children[[i]], recording = FALSE)
 49. │   └─grDevices::recordGraphics(drawGTree(x), list(x = x), getNamespace("grid"))
 50. ├─grid:::drawGTree(x)
 51. │ ├─grid::grid.draw(x$children[[i]], recording = FALSE)
 52. │ └─grid:::grid.draw.gTree(x$children[[i]], recording = FALSE)
 53. │   └─grDevices::recordGraphics(drawGTree(x), list(x = x), getNamespace("grid"))
 54. ├─grid:::drawGTree(x)
 55. │ ├─grid::grid.draw(x$children[[i]], recording = FALSE)
 56. │ └─grid:::grid.draw.grob(x$children[[i]], recording = FALSE)
 57. │   └─grDevices::recordGraphics(drawGrob(x), list(x = x), getNamespace("grid"))
 58. └─grid:::drawGrob(x)
 59.   ├─grid:::preDraw(x)
 60.   └─grid:::preDraw.grob(x)
 61.     ├─grid::makeContext(x)
 62.     └─ggrastr:::makeContext.rasteriser(x)
 63.       └─Cairo::Cairo(...)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Error: processing vignette 'Raster_geoms.Rmd' failed with diagnostics:
Graphics API version mismatch
--- failed re-building 'Raster_geoms.Rmd'

SUMMARY: processing the following files failed:
  'Legacy_functions.Rmd' 'Raster_geoms.Rmd'

Error: Vignette re-building failed.
Execution halted