Running ‘testthat.R’ [20s/131s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
  > # * https://testthat.r-lib.org/articles/special-files.html
  > 
  > library(testthat)
  > library(jgd)
  > 
  > test_check("jgd")
  jgd: connect(unix:///nonexistent-jgd-test.sock) failed: 2
  jgd: connect(unix:///nonexistent-jgd-env-test.sock) failed: 2
  jgd: connect(unix:///nonexistent-jgd-opt-test.sock) failed: 2
  jgd: connect(unix:///nonexistent-jgd-draw-test.sock) failed: 2
  jgd: connect(unix://localhost/nonexistent-jgd-localhost-test.sock) failed: 2
  jgd: connect(unix://localhost/nonexistent-jgd-localhost-draw.sock) failed: 2
  jgd: connect(tcp://127.0.0.1:1) failed: 111
  jgd: connect(tcp://127.0.0.1:1) failed: 111
  jgd: connect(tcp://127.0.0.1:1) failed: 111
  jgd: connect(tcp://127.0.0.1:1) failed: 111
  jgd: connect(tcp://127.0.0.1:1) failed: 111
  jgd: connect(tcp://127.0.0.1:1) failed: 111
  jgd: connect(tcp://127.0.0.1:1) failed: 111
  jgd: connect(tcp://127.0.0.1:1) failed: 111
  jgd: connect(tcp://127.0.0.1:1) failed: 111
  jgd: connect(tcp://127.0.0.1:1) failed: 111
  jgd: connect(tcp://127.0.0.1:1) failed: 111
  jgd: connect(tcp://127.0.0.1:1) failed: 111
  jgd: connect(tcp://127.0.0.1:1) failed: 111
  jgd: connect(tcp://127.0.0.1:1) failed: 111
  jgd: connect(tcp://127.0.0.1:1) failed: 111
  jgd: connect(tcp://127.0.0.1:1) failed: 111
  Saving _problems/test-frame-output-84.R
  Saving _problems/test-frame-output-220.R
  jgd: connect(tcp://127.0.0.1:1) failed: 111
  jgd: connect(tcp://127.0.0.1:1) failed: 111
  jgd: connect(tcp://127.0.0.1:1) failed: 111
  jgd: connect(tcp://127.0.0.1:1) failed: 111
  jgd: connect(tcp://127.0.0.1:1) failed: 111
  Saving _problems/test-group-ops-647.R
  jgd: connect(unix:///nonexistent-jgd-info-test.sock) failed: 2
  [ FAIL 3 | WARN 13 | SKIP 28 | PASS 166 ]
  
  ══ Skipped tests (28) ══════════════════════════════════════════════════════════
  • Named pipes only available on Windows (1): 'test-device-basic.R:83:3'
  • On CRAN (27): 'test-device-basic.R:3:1', 'test-device-basic.R:10:1',
    'test-device-basic.R:17:1', 'test-device-basic.R:25:1',
    'test-device-basic.R:36:1', 'test-device-basic.R:43:1',
    'test-device-basic.R:53:1', 'test-device-basic.R:59:1',
    'test-device-basic.R:65:1', 'test-device-basic.R:72:1',
    'test-device-basic.R:94:1', 'test-frame-ext.R:225:3',
    'test-frame-ext.R:429:3', 'test-frame-ext.R:491:3',
    'test-frame-output.R:226:1', 'test-frame-output.R:241:1',
    'test-frame-output.R:251:1', 'test-frame-output.R:271:1',
    'test-group-ops.R:346:3', 'test-group-ops.R:526:3',
    'test-malformed-json.R:121:3', 'test-malformed-json.R:151:3',
    'test-malformed-json.R:171:3', 'test-plotindex-buffering.R:132:3',
    'test-resize-plotindex-content.R:133:3',
    'test-resize-plotindex-lines.R:128:3', 'test-resize-plotnumber.R:132:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-frame-output.R:81:3'): polygon() produces polygon op ───────────
  Error in `file(file, ifelse(append, "a", "w"))`: cannot open the connection
  Backtrace:
       ▆
    1. └─jgd:::with_mock_jgd(...) at test-frame-output.R:81:3
    2.   └─jgd:::start_mock_server_local(send_welcome = send_welcome) at ./helper-mock-server.R:328:5
    3.     └─callr::r_bg(...) at ./helper-mock-server.R:35:3
    4.       └─r_process$new(options = options)
    5.         └─callr (local) initialize(...)
    6.           └─callr:::rp_init(self, private, super, options)
    7.             └─callr:::setup_context(options)
    8.               ├─base::within(...)
    9.               └─base::within.list(...)
   10.                 └─base::eval(substitute(expr), e)
   11.                   └─base::eval(substitute(expr), e)
   12.                     └─callr:::make_profiles(...)
   13.                       └─base::cat("", file = profile_system)
   14.                         └─base::file(file, ifelse(append, "a", "w"))
  ── Error ('test-frame-output.R:217:3'): close message JSON matches snapshot ────
  Error in `file(file, ifelse(append, "a", "w"))`: cannot open the connection
  Backtrace:
       ▆
    1. └─jgd:::with_mock_jgd(...) at test-frame-output.R:217:3
    2.   └─jgd:::start_mock_server_local(send_welcome = send_welcome) at ./helper-mock-server.R:328:5
    3.     └─callr::r_bg(...) at ./helper-mock-server.R:35:3
    4.       └─r_process$new(options = options)
    5.         └─callr (local) initialize(...)
    6.           └─callr:::rp_init(self, private, super, options)
    7.             └─callr:::setup_context(options)
    8.               ├─base::within(...)
    9.               └─base::within.list(...)
   10.                 └─base::eval(substitute(expr), e)
   11.                   └─base::eval(substitute(expr), e)
   12.                     └─callr:::make_profiles(...)
   13.                       └─base::cat("", file = profile_user)
   14.                         └─base::file(file, ifelse(append, "a", "w"))
  ── Error ('test-group-ops.R:640:3'): unclosed group is auto-closed at new page with warning ──
  Error in `file(file, ifelse(append, "a", "w"))`: cannot open the connection
  Backtrace:
       ▆
    1. └─jgd:::with_mock_jgd(...) at test-group-ops.R:640:3
    2.   └─jgd:::start_mock_server_local(send_welcome = send_welcome) at ./helper-mock-server.R:328:5
    3.     └─callr::r_bg(...) at ./helper-mock-server.R:35:3
    4.       └─r_process$new(options = options)
    5.         └─callr (local) initialize(...)
    6.           └─callr:::rp_init(self, private, super, options)
    7.             └─callr:::setup_context(options)
    8.               ├─base::within(...)
    9.               └─base::within.list(...)
   10.                 └─base::eval(substitute(expr), e)
   11.                   └─base::eval(substitute(expr), e)
   12.                     └─callr:::make_environ(profiles, libpath, env)
   13.                       └─base::cat(...)
   14.                         └─base::file(file, ifelse(append, "a", "w"))
  
  [ FAIL 3 | WARN 13 | SKIP 28 | PASS 166 ]
  Error:
  ! Test failures.
  Execution halted