Running ‘run-all.R’ [150s/148s]
Running the tests in ‘tests/run-all.R’ failed.
Complete output:
  > library("testthat", quietly = TRUE)
  > 
  > test_check("piecepackr")
  Loading required package: piecepackr
  Saving _problems/test-pieceGrob-115.R
  Saving _problems/test-pieceGrob-282.R
  
  Attaching package: 'rayrender'
  
  The following objects are masked from 'package:rayvertex':
  
      r_obj, run_documentation
  
  The following object is masked from 'package:grid':
  
      arrow
  
  The following object is masked from 'package:ggplot2':
  
      arrow
  
  
  Attaching package: 'rgl'
  
  The following object is masked from 'package:rayrender':
  
      text3d
  
  Saving _problems/test-render_piece-96.R
  [ FAIL 3 | WARN 3 | SKIP 16 | PASS 204 ]
  
  ══ Skipped tests (16) ══════════════════════════════════════════════════════════
  • On CRAN (15): 'test-crop_marks.R:1:1', 'test-crosshairs.R:1:1',
    'test-game_systems.R:6:1', 'test-game_systems.R:10:1',
    'test-geom_piece.R:1:1', 'test-obj.R:23:2', 'test-obj.R:103:2',
    'test-obj.R:124:2', 'test-op_transform.R:2:1', 'test-pieceGrob.R:28:2',
    'test-pieceGrob.R:87:1', 'test-pieceGrob.R:428:1', 'test-pieceGrob.R:438:2',
    'test-pp_shape.R:2:1', 'test-utils.R:9:1'
  • Sys.info()[["nodename"]] == "pesd-tld-laptop" is not TRUE (1):
    'test-pieceGrob.R:523:2'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-pieceGrob.R:115:2'): `save_piece_images()` works as expected ───
  Error in `(function (filename = if (onefile) "Rplots.svg" else "Rplot%03d.svg", width = 7, height = 7, pointsize = 12, onefile = FALSE, family = "sans", bg = "white", antialias = c("default", "none", "gray", "subpixel"), symbolfamily)  {     if (!checkIntFormat(filename))          stop("invalid 'filename'")     if (!capabilities("cairo"))          stop("svg: Cairo-based devices are not available for this platform")     antialiases <- eval(formals()$antialias)     antialias <- match(match.arg(antialias, antialiases), antialiases)     if (missing(symbolfamily))          symbolfamily <- symbolfamilyDefault(family)     invisible(.External(C_devCairo, filename, 4L, 72 * width, 72 * height, pointsize, bg, NA_integer_, antialias, onefile, family, 300, checkSymbolFont(symbolfamily))) })(filename = "/tmp/RtmpNBATsA/fileb308d5c721e5c/tile_face_s3_r5_t0.svgz", width = 2, height = 2, bg = "transparent")`: unable to start device 'svg'
  Backtrace:
      ▆
   1. └─piecepackr::save_piece_images(...) at test-pieceGrob.R:115:9
   2.   └─piecepackr:::make_images_helper(directory, cfg, f, a)
   3.     ├─base::suppressWarnings(...)
   4.     │ └─base::withCallingHandlers(...)
   5.     └─piecepackr:::piece_device(f, cs, cfg, angle, rank = rank)
   6.       └─piecepackr:::pp_device(filename, width, height, res, bg = "transparent")
   7.         ├─base::do.call(dev_fn, args)
   8.         └─grDevices (local) `<fn>`(...)
  ── Error ('test-pieceGrob.R:280:2'): no regressions in figures ─────────────────
  Error: cannot open stream /tmp/RtmpNBATsA/matchstick-face-s4-r4b308d2f1b8f49.svg
  Backtrace:
      ▆
   1. └─vdiffr::expect_doppelganger(...) at test-pieceGrob.R:280:9
   2.   └─vdiffr (local) writer(fig, testcase, title)
   3.     └─vdiffr:::svglite(file)
   4.       └─vdiffr:::svglite_(...)
  ── Error ('test-render_piece.R:88:2'): render_piece() works ────────────────────
  <purrr_error_indexed/rlang_error/error/condition>
  Error in `purrr::pmap(.l, .f, ..., envir = envir, draw = FALSE)`: i In index: 8.
  Caused by error in `file()`:
  ! cannot open the connection
  Backtrace:
       ▆
    1. ├─piecepackr::render_piece(...) at test-render_piece.R:88:9
    2. │ └─piecepackr (local) fn(df, ...)
    3. │   └─piecepackr::pmap_piece(df, piece3d, ..., envir = envir)
    4. │     └─purrr::pmap(.l, .f, ..., envir = envir, draw = FALSE)
    5. │       └─purrr:::pmap_("list", .l, .f, ..., .progress = .progress)
    6. │         ├─purrr:::with_indexed_errors(...)
    7. │         │ └─base::withCallingHandlers(...)
    8. │         ├─purrr:::call_with_cleanup(...)
    9. │         └─piecepackr (local) .f(...)
   10. │           └─base::lapply(...)
   11. │             └─piecepackr (local) FUN(X[[i]], ...)
   12. │               └─cfg[[i]]$rgl(...)
   13. │                 ├─base::do.call(rgl_fn, args)
   14. │                 └─piecepackr (local) `<fn>`(...)
   15. │                   └─piecepackr::save_piece_obj(...)
   16. │                     └─base::lapply(...)
   17. │                       └─piecepackr (local) FUN(X[[i]], ...)
   18. │                         └─piecepackr:::save_piece_obj_helper(...)
   19. │                           └─cfg$save_obj(...)
   20. │                             ├─base::do.call(obj_fn, args)
   21. │                             └─piecepackr (local) `<fn>`(...)
   22. │                               └─piecepackr:::write_obj(filename, v = xyz, vt = vt, f = f)
   23. │                                 └─piecepackr:::write_mtl(mtl_filename, basename(png_filename))
   24. │                                   └─base::writeLines(...)
   25. │                                     └─base::file(con, "w")
   26. └─base::.handleSimpleError(...)
   27.   └─purrr (local) h(simpleError(msg, call))
   28.     └─cli::cli_abort(...)
   29.       └─rlang::abort(...)
  
  [ FAIL 3 | WARN 3 | SKIP 16 | PASS 204 ]
  Deleting unused snapshots: 'pieceGrob/coin-face-op.svg',
  'pieceGrob/diagram-op-ppgf.svg', 'pieceGrob/diagram-op.svg',
  'pieceGrob/die-face-op-roundrect.svg', 'pieceGrob/die-face-op.svg',
  'pieceGrob/die-layoutrf-opposites-sum-to-5.svg',
  'pieceGrob/matchstick-back-s3-r6.svg', 'pieceGrob/matchstick-face-op.svg',
  'pieceGrob/matchstick-face-s1-r5.svg', 'pieceGrob/matchstick-face-s2-r6.svg',
  'pieceGrob/meeple.svg', 'pieceGrob/pawn-face-op.svg',
  'pieceGrob/pawn-top-meeple-op.svg', 'pieceGrob/piece-edges.svg',
  'pieceGrob/pmap-piece-default.svg', 'pieceGrob/pmap-piece.svg',
  'pieceGrob/preview-5s.svg', 'pieceGrob/preview-6s.svg', …,
  'pieceGrob/tile-face-op-roundrect.svg', and 'pieceGrob/tile-face-op.svg'
  Error:
  ! Test failures.
  Execution halted