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

> ### Name: piecepackr-deprecated
> ### Title: Deprecated functions
> ### Aliases: piecepackr-deprecated halmaGrob kiteGrob pyramidGrob
> ###   convexGrobFn concaveGrobFn gridlinesGrob matGrob checkersGrob
> ###   hexlinesGrob get_shape_grob_fn
> 
> ### ** Examples
> 
>  if (require("grid")) {
+      suppressWarnings({
+          gp <- gpar(col="black", fill="yellow")
+          pushViewport(viewport(x=0.25, y=0.75, width=1/2, height=1/2))
+          grid.draw(get_shape_grob_fn("rect")(gp=gp))
+          grid.draw(gridlinesGrob("blue", lex=4))
+          grid.draw(hexlinesGrob("green"))
+          popViewport()
+ 
+          pushViewport(viewport(x=0.75, y=0.75, width=1/2, height=1/2))
+          grid.draw(get_shape_grob_fn("convex6")(gp=gp))
+          grid.draw(checkersGrob("blue", shape="convex6"))
+          popViewport()
+ 
+          pushViewport(viewport(x=0.25, y=0.25, width=1/2, height=1/2))
+          grid.draw(get_shape_grob_fn("circle")(gp=gp))
+          grid.draw(matGrob("blue", shape="circle", mat_width=0.2))
+          popViewport()
+ 
+          pushViewport(viewport(x=0.75, y=0.25, width=1/2, height=1/2))
+          grid.draw(get_shape_grob_fn("rect")(gp=gp))
+          grid.draw(matGrob("blue", shape="rect", mat_width=c(0.2, 0.1, 0.3, 0.4)))
+          popViewport()
+ 
+          grid.newpage()
+          gp <- gpar(col="black", fill="yellow")
+ 
+          vp <- viewport(x=1/3-1/6, width=1/3)
+          grid.draw(halmaGrob(gp=gp, vp=vp))
+          vp <- viewport(x=2/3-1/6, width=1/3)
+          grid.draw(pyramidGrob(gp=gp, vp=vp))
+          vp <- viewport(x=3/3-1/6, width=1/3)
+          grid.draw(kiteGrob(gp=gp, vp=vp))
+ 
+          grid.newpage()
+          vp <- viewport(x=1/4, y=1/4, width=1/2, height=1/2)
+          grid.draw(convexGrobFn(3, 0)(gp=gp, vp=vp))
+          vp <- viewport(x=3/4, y=1/4, width=1/2, height=1/2)
+          grid.draw(convexGrobFn(4, 90)(gp=gp, vp=vp))
+          vp <- viewport(x=3/4, y=3/4, width=1/2, height=1/2)
+          grid.draw(convexGrobFn(5, 180)(gp=gp, vp=vp))
+          vp <- viewport(x=1/4, y=3/4, width=1/2, height=1/2)
+          grid.draw(convexGrobFn(6, 270)(gp=gp, vp=vp))
+ 
+          grid.newpage()
+          vp <- viewport(x=1/4, y=1/4, width=1/2, height=1/2)
+          grid.draw(concaveGrobFn(3, 0, 0.1)(gp=gp, vp=vp))
+          vp <- viewport(x=3/4, y=1/4, width=1/2, height=1/2)
+          grid.draw(concaveGrobFn(4, 90, 0.2)(gp=gp, vp=vp))
+          vp <- viewport(x=3/4, y=3/4, width=1/2, height=1/2)
+          grid.draw(concaveGrobFn(5, 180, 0.3)(gp=gp, vp=vp))
+          vp <- viewport(x=1/4, y=3/4, width=1/2, height=1/2)
+          grid.draw(concaveGrobFn(6, 270)(gp=gp, vp=vp))
+      }, classes = "deprecatedWarning")
+  }
Loading required package: grid
Error in suppressWarnings({ : 
  unused argument (classes = "deprecatedWarning")
Execution halted