Running ‘testthat.R’
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(websocket)
  > 
  > test_check("websocket")
  [2021-04-23 23:01:40] [error] Server handshake response error: websocketpp.processor:20 (Invalid HTTP status.)
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  ● On CRAN (1)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-client.R:24:3): Connection can't be defined with invalid maxMessageSize ──
  Error: there is no package called 'httpuv'
  Backtrace:
      █
   1. └─websocket:::echo_server() test-client.R:24:2
   2.   └─httpuv::startServer test-client.R:2:2
   3.     └─base::getExportedValue(pkg, name)
   4.       └─base::asNamespace(ns)
   5.         └─base::getNamespace(ns)
   6.           └─base::loadNamespace(name)
   7.             └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   8.               └─base:::withOneRestart(expr, restarts[[1L]])
   9.                 └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-client.R:70:3): small maxMessageSizes break simple connections ──
  Error: there is no package called 'httpuv'
  Backtrace:
      █
   1. └─websocket:::echo_server() test-client.R:70:2
   2.   └─httpuv::startServer test-client.R:2:2
   3.     └─base::getExportedValue(pkg, name)
   4.       └─base::asNamespace(ns)
   5.         └─base::getNamespace(ns)
   6.           └─base::loadNamespace(name)
   7.             └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   8.               └─base:::withOneRestart(expr, restarts[[1L]])
   9.                 └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-client.R:175:3): Basic websocket communication ──────────────────
  Error: there is no package called 'httpuv'
  Backtrace:
      █
   1. └─websocket:::echo_server() test-client.R:175:2
   2.   └─httpuv::startServer test-client.R:2:2
   3.     └─base::getExportedValue(pkg, name)
   4.       └─base::asNamespace(ns)
   5.         └─base::getNamespace(ns)
   6.           └─base::loadNamespace(name)
   7.             └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   8.               └─base:::withOneRestart(expr, restarts[[1L]])
   9.                 └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-client.R:188:3): WebSocket object can be garbage collected ──────
  Error: there is no package called 'httpuv'
  Backtrace:
      █
   1. └─websocket:::echo_server() test-client.R:188:2
   2.   └─httpuv::startServer test-client.R:2:2
   3.     └─base::getExportedValue(pkg, name)
   4.       └─base::asNamespace(ns)
   5.         └─base::getNamespace(ns)
   6.           └─base::loadNamespace(name)
   7.             └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   8.               └─base:::withOneRestart(expr, restarts[[1L]])
   9.                 └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-client.R:229:3): Open is async ──────────────────────────────────
  Error: there is no package called 'httpuv'
  Backtrace:
      █
   1. └─websocket:::echo_server() test-client.R:229:2
   2.   └─httpuv::startServer test-client.R:2:2
   3.     └─base::getExportedValue(pkg, name)
   4.       └─base::asNamespace(ns)
   5.         └─base::getNamespace(ns)
   6.           └─base::loadNamespace(name)
   7.             └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   8.               └─base:::withOneRestart(expr, restarts[[1L]])
   9.                 └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-client.R:273:3): Connect can be delayed ─────────────────────────
  Error: there is no package called 'httpuv'
  Backtrace:
      █
   1. └─websocket:::echo_server() test-client.R:273:2
   2.   └─httpuv::startServer test-client.R:2:2
   3.     └─base::getExportedValue(pkg, name)
   4.       └─base::asNamespace(ns)
   5.         └─base::getNamespace(ns)
   6.           └─base::loadNamespace(name)
   7.             └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   8.               └─base:::withOneRestart(expr, restarts[[1L]])
   9.                 └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-client.R:319:3): WebSocket can be closed before fully open ──────
  Error: there is no package called 'httpuv'
  Backtrace:
      █
   1. └─websocket:::echo_server() test-client.R:319:2
   2.   └─httpuv::startServer test-client.R:2:2
   3.     └─base::getExportedValue(pkg, name)
   4.       └─base::asNamespace(ns)
   5.         └─base::getNamespace(ns)
   6.           └─base::loadNamespace(name)
   7.             └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   8.               └─base:::withOneRestart(expr, restarts[[1L]])
   9.                 └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-client.R:350:3): WebSocket event handlers can be registered more than once ──
  Error: there is no package called 'httpuv'
  Backtrace:
      █
   1. └─websocket:::echo_server() test-client.R:350:2
   2.   └─httpuv::startServer test-client.R:2:2
   3.     └─base::getExportedValue(pkg, name)
   4.       └─base::asNamespace(ns)
   5.         └─base::getNamespace(ns)
   6.           └─base::loadNamespace(name)
   7.             └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   8.               └─base:::withOneRestart(expr, restarts[[1L]])
   9.                 └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-client.R:380:3): WebSocket event handlers can run in private loop ──
  Error: there is no package called 'httpuv'
  Backtrace:
      █
   1. └─websocket:::echo_server() test-client.R:380:2
   2.   └─httpuv::startServer test-client.R:2:2
   3.     └─base::getExportedValue(pkg, name)
   4.       └─base::asNamespace(ns)
   5.         └─base::getNamespace(ns)
   6.           └─base::loadNamespace(name)
   7.             └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   8.               └─base:::withOneRestart(expr, restarts[[1L]])
   9.                 └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-client.R:413:3): WebSocket persists after reference is gone, and can be GC'd after connection is closed ──
  Error: there is no package called 'httpuv'
  Backtrace:
      █
   1. └─httpuv::startServer test-client.R:413:2
   2.   └─base::getExportedValue(pkg, name)
   3.     └─base::asNamespace(ns)
   4.       └─base::getNamespace(ns)
   5.         └─base::loadNamespace(name)
   6.           └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   7.             └─base:::withOneRestart(expr, restarts[[1L]])
   8.               └─base:::doWithOneRestart(return(expr), restart)
  
  [ FAIL 10 | WARN 0 | SKIP 1 | PASS 1 ]
  Error: Test failures
  Execution halted