Running ‘testthat.R’ [3s/3s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(gwdegree)
  Loading required package: ergm
  Loading required package: statnet.common
  
  Attaching package: 'statnet.common'
  
  The following object is masked from 'package:base':
  
      order
  
  Loading required package: network
  network: Classes for Relational Data
  Version 1.13.0 created on 2015-08-31.
  copyright (c) 2005, Carter T. Butts, University of California-Irvine
                      Mark S. Handcock, University of California -- Los Angeles
                      David R. Hunter, Penn State University
                      Martina Morris, University of Washington
                      Skye Bender-deMoll, University of Washington
   For citation information, type citation("network").
   Type help("network-package") to get started.
  
  
  ergm: version 3.8.0, created on 2017-08-18
  Copyright (c) 2017, Mark S. Handcock, University of California -- Los Angeles
                      David R. Hunter, Penn State University
                      Carter T. Butts, University of California -- Irvine
                      Steven M. Goodreau, University of Washington
                      Pavel N. Krivitsky, University of Wollongong
                      Martina Morris, University of Washington
                      with contributions from
                      Li Wang
                      Kirk Li, University of Washington
                      Skye Bender-deMoll, University of Washington
  Based on "statnet" project software (statnet.org).
  For license and citation information see statnet.org/attribution
  or type citation("ergm").
  
  NOTE: Versions before 3.6.1 had a bug in the implementation of the bd()
  constriant which distorted the sampled distribution somewhat. In
  addition, Sampson's Monks datasets had mislabeled vertices. See the
  NEWS and the documentation for more details.
  
  Loading required package: ggplot2
  Loading required package: magrittr
  
  Attaching package: 'magrittr'
  
  The following objects are masked from 'package:testthat':
  
      equals, is_less_than, not
  
  Loading required package: shiny
  Loading required package: shinydashboard
  
  Attaching package: 'shinydashboard'
  
  The following object is masked from 'package:graphics':
  
      box
  
  > 
  > test_check("gwdegree")
  ── 1. Error: Deleting an edge: deltaGWD() matches simulation-based calculation f
  incorrect number of dimensions
  1: .handleSimpleError(function (e) 
     {
         handled <<- TRUE
         test_error <<- e
         options(expressions = expressions_opt_new)
         on.exit(options(expressions = expressions_opt), add = TRUE)
         e$expectation_calls <- frame_calls(11, 2)
         test_error <<- e
         register_expectation(e)
         e$handled <- TRUE
         test_error <<- e
     }, "incorrect number of dimensions", quote(n[nodesToAdd[1], nodesToAdd[2]])) at testthat/test_deltaGWD.R:10
  2: eval(code, test_env)
  
  ── 2. Error: Adding an edge: deltaGWD() matches simulation-based calculation for
  incorrect number of dimensions
  1: .handleSimpleError(function (e) 
     {
         handled <<- TRUE
         test_error <<- e
         options(expressions = expressions_opt_new)
         on.exit(options(expressions = expressions_opt), add = TRUE)
         e$expectation_calls <- frame_calls(11, 2)
         test_error <<- e
         register_expectation(e)
         e$handled <- TRUE
         test_error <<- e
     }, "incorrect number of dimensions", quote(n[nodesToAdd[1], nodesToAdd[2]])) at testthat/test_deltaGWD.R:30
  2: eval(code, test_env)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 7 SKIPPED: 0 FAILED: 2
  1. Error: Deleting an edge: deltaGWD() matches simulation-based calculation for a random dyad in random network with a random decay-parameter value in [0, 3]. (@test_deltaGWD.R#10) 
  2. Error: Adding an edge: deltaGWD() matches simulation-based calculation for a random dyad in random network with a random decay-parameter value in [0, 3]. (@test_deltaGWD.R#30) 
  
  Error: testthat unit tests failed
  Execution halted