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

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: isocubeGrob
> ### Title: Isometric cube grob
> ### Aliases: isocubeGrob grid.isocube
> 
> ### ** Examples
> 
> if (require("grid") &&
+     getRversion() >= "4.2.0" &&
+     isTRUE(dev.capabilities()$transformations)) {
+   # Only works if active graphics device supports affine transformations
+   # such as `png(type="cairo")` on R 4.2+
+   grid.newpage()
+   gp_text <- gpar(fontsize = 72)
+   grid.isocube(top = textGrob("top", gp = gp_text), 
+                right = textGrob("right", gp = gp_text),
+                left = textGrob("left", gp = gp_text))
+ }
Loading required package: grid
> if (require("grid") &&
+     getRversion() >= "4.2.0" &&
+     isTRUE(dev.capabilities()$transformations)) {
+     colors <- c("#D55E00", "#009E73", "#56B4E9")
+     spacings <- c(0.25, 0.2, 0.25)
+     texts <- c("pkgname", "left\nface", "right\nface")
+     rots <- c(45, 0, 0)
+     fontsizes <- c(52, 80, 80)
+     sides <- c("top", "left", "right")
+     types <- gridpattern::names_polygon_tiling[c(5, 7, 9)]
+     l_grobs <- list()
+     grid.newpage()
+     for (i in 1:3) {
+         if (requireNamespace("gridpattern", quietly = TRUE)) {
+             bg <- gridpattern::grid.pattern_polygon_tiling(
+                        colour = "grey80",
+                        fill = c(colors[i], "white"),
+                        type = types[i],
+                        spacing = spacings[i],
+                        draw = FALSE)
+         } else {
+             bg <- rectGrob(gp = gpar(col = NA, fill = colors[i]))
+         }
+         text <- textGrob(texts[i], rot = rots[i],
+                          gp = gpar(fontsize = fontsizes[i]))
+         l_grobs[[sides[i]]] <- grobTree(bg, text)
+     }
+   grid.newpage()
+   grid.isocube(top = l_grobs$top, 
+                right = l_grobs$right,
+                left = l_grobs$left)
+ }
Error in loadNamespace(x) : there is no package called ‘gridpattern’
Calls: loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart
Execution halted