Running 'testthat.R' [25s/30s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(EloRating)
  Loading required package: zoo
  
  Attaching package: 'zoo'
  
  The following objects are masked from 'package:base':
  
      as.Date, as.Date.numeric
  
  Loading required package: sna
  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.16.1 created on 2020-10-06.
  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.
  
  sna: Tools for Social Network Analysis
  Version 2.6 created on 2020-10-5.
  copyright (c) 2005, Carter T. Butts, University of California-Irvine
   For citation information, type citation("sna").
   Type help(package="sna") to get started.
  
  > 
  > test_check("EloRating")
  I = 1 
  SI = 2 
  == Failed tests ================================================================
  -- Error (test_transitivity.R:5:1): (code run outside of `test_that()`) --------
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
      x
   1. \-EloRating::transitivity(m = M, returnfig = FALSE, runs = 2000) test_transitivity.R:5:0
   2.   +-sna::triad.census(network(int.to.dom(m), directed = TRUE))
   3.   | \-sna::as.edgelist.sna(dat)
   4.   \-network::network(int.to.dom(m), directed = TRUE)
   5.     +-network::as.network(...)
   6.     \-network::as.network.matrix(...)
   7.       \-network::network.initialize(...)
   8.         \-network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 65 ]
  Error: Test failures
  Execution halted