Running examples in ‘gridify-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: complex_layout
> ### Title: Complex Layout for a gridify object
> ### Aliases: complex_layout
> 
> ### ** Examples
> 
> complex_layout()
gridifyLayout object
---------------------
Layout dimensions:
  Number of rows: 6
  Number of columns: 3

Heights of rows:
  Row 1: 0 lines
  Row 2: 0 lines
  Row 3: 0 lines
  Row 4: 1 null
  Row 5: 0 lines
  Row 6: 0 lines

Widths of columns:
  Column 1: 0.333333333333333 npc
  Column 2: 0.333333333333333 npc
  Column 3: 0.333333333333333 npc

Object Position:
  Row: 4
  Col: 1-3
  Width: 1
  Height: 1

Object Row Heights:
  Row 4: 1 null

Margin:
  Top: 0.1 npc
  Right: 0.1 npc
  Bottom: 0.1 npc
  Left: 0.1 npc

Global graphical parameters:
  Are not set

Background colour:
  transparent

Default Cell Info:
  header_left:
    row:1, col:1, text:NULL, mch:Inf, x:0.5, y:0.5, hjust:0.5, vjust:0.5, rot:0, 
  header_middle:
    row:1, col:2, text:NULL, mch:Inf, x:0.5, y:0.5, hjust:0.5, vjust:0.5, rot:0, 
  header_right:
    row:1, col:3, text:NULL, mch:Inf, x:0.5, y:0.5, hjust:0.5, vjust:0.5, rot:0, 
  title:
    row:2, col:1-3, text:NULL, mch:Inf, x:0.5, y:0.5, hjust:0.5, vjust:0.5, rot:0, 
  subtitle:
    row:3, col:1-3, text:NULL, mch:Inf, x:0.5, y:0.5, hjust:0.5, vjust:0.5, rot:0, 
  note:
    row:5, col:1-3, text:NULL, mch:Inf, x:0.5, y:0.5, hjust:0.5, vjust:0.5, rot:0, 
  footer_left:
    row:6, col:1, text:NULL, mch:Inf, x:0.5, y:0.5, hjust:0.5, vjust:0.5, rot:0, 
  footer_middle:
    row:6, col:2, text:NULL, mch:Inf, x:0.5, y:0.5, hjust:0.5, vjust:0.5, rot:0, 
  footer_right:
    row:6, col:3, text:NULL, mch:Inf, x:0.5, y:0.5, hjust:0.5, vjust:0.5, rot:0, 

> 
> # (to use |> version 4.1.0 of R is required, for lower versions we recommend %>% from magrittr)
> library(magrittr)
> 
> gridify(
+   object = ggplot2::ggplot(data = mtcars, ggplot2::aes(x = mpg, y = wt)) +
+     ggplot2::geom_line(),
+   layout = complex_layout()
+ ) %>%
+   set_cell("header_left", "Left Header") %>%
+   set_cell("header_middle", "Middle Header") %>%
+   set_cell("header_right", "Right Header") %>%
+   set_cell("title", "Title") %>%
+   set_cell("subtitle", "Subtitle") %>%
+   set_cell("note", "Note") %>%
+   set_cell("footer_left", "Left Footer") %>%
+   set_cell("footer_middle", "Middle Footer") %>%
+   set_cell("footer_right", "Right Footer")
gridifyClass object
---------------------
Please run `show_spec(object)` or print the layout to get more specs.

Cells:
  header_left: filled
  header_middle: filled
  header_right: filled
  title: filled
  subtitle: filled
  note: filled
  footer_left: filled
  footer_middle: filled
  footer_right: filled
> 
> gridify(
+   object = ggplot2::ggplot(data = mtcars, ggplot2::aes(x = mpg, y = wt)) +
+     ggplot2::geom_line(),
+   layout = complex_layout(margin = grid::unit(c(t = 0.2, r = 0.2, b = 0.2, l = 0.2), units = "npc"))
+ ) %>%
+   set_cell("header_left", "Left Header") %>%
+   set_cell("header_right", "Right Header") %>%
+   set_cell("title", "Title") %>%
+   set_cell("note", "Note") %>%
+   set_cell("footer_left", "Left Footer")
gridifyClass object
---------------------
Please run `show_spec(object)` or print the layout to get more specs.

Cells:
  header_left: filled
  header_middle: empty
  header_right: filled
  title: filled
  subtitle: empty
  note: filled
  footer_left: filled
  footer_middle: empty
  footer_right: empty
> 
> gridify(
+   object = gt::gt(head(mtcars)),
+   layout = complex_layout(
+     margin = grid::unit(c(t = 0.2, r = 0.2, b = 0.2, l = 0.2), units = "npc"),
+     global_gpar = grid::gpar(col = "blue", fontsize = 18)
+   )
+ ) %>%
+   set_cell("header_left", "Left Header") %>%
+   set_cell("header_right", "Right Header") %>%
+   set_cell("title", "Title") %>%
+   set_cell("note", "Note") %>%
+   set_cell("footer_left", "Left Footer")
Error in loadNamespace(x) : there is no package called ‘gt’
Calls: %>% ... loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart
Execution halted