Running ‘degree_tests.R’ [1s/1s]
  Running ‘density_tests.R’ [4s/4s]
  Running ‘durations_tests.R’ [3s/3s]
  Running ‘fromDissTests.R’ [2s/2s]
  Running ‘pShift_tests.R’ [1s/1s]
  Running ‘path_tests.R’ [3s/3s]
  Running ‘reachable_tests.R’ [5s/5s]
  Running ‘statsWrapper_tests.R’ [1s/1s]
  Running ‘timeProjectedNetwork_tests.R’ [3s/3s]
Running the tests in ‘tests/degree_tests.R’ failed.
Complete output:
  > # tests for temporal degree functions
  > library(tsna)
  Loading required package: network
  
  'network' 1.20.0 (2026-02-06), part of the Statnet Project
  * 'news(package="network")' for changes since last version
  * 'citation("network")' for citation information
  * 'https://statnet.org' for help, support, and other information
  
  Loading required package: networkDynamic
  
  'networkDynamic' 0.12.0 (2026-04-08), part of the Statnet Project
  * 'news(package="networkDynamic")' for changes since last version
  * 'citation("networkDynamic")' for citation information
  * 'https://statnet.org' for help, support, and other information
  
  > library(testthat)
  > library(sna)
  Error in library(sna) : there is no package called 'sna'
  Execution halted
Running the tests in ‘tests/pShift_tests.R’ failed.
Complete output:
  > library(tsna)
  Loading required package: network
  
  'network' 1.20.0 (2026-02-06), part of the Statnet Project
  * 'news(package="network")' for changes since last version
  * 'citation("network")' for citation information
  * 'https://statnet.org' for help, support, and other information
  
  Loading required package: networkDynamic
  
  'networkDynamic' 0.12.0 (2026-04-08), part of the Statnet Project
  * 'news(package="networkDynamic")' for changes since last version
  * 'citation("networkDynamic")' for citation information
  * 'https://statnet.org' for help, support, and other information
  
  > library(testthat)
  > 
  > 
  > data(McFarland_cls33_10_16_96)
  > output<-pShiftCount(cls33_10_16_96)
  Loading required namespace: relevent
  Failed with error:  'there is no package called 'relevent''
  Error in loadNamespace(x) : there is no package called 'relevent'
  Calls: pShiftCount ... loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart
  Execution halted
Running the tests in ‘tests/statsWrapper_tests.R’ failed.
Complete output:
  > # tests for summary stats functions
  > library(tsna)
  Loading required package: network
  
  'network' 1.20.0 (2026-02-06), part of the Statnet Project
  * 'news(package="network")' for changes since last version
  * 'citation("network")' for citation information
  * 'https://statnet.org' for help, support, and other information
  
  Loading required package: networkDynamic
  
  'networkDynamic' 0.12.0 (2026-04-08), part of the Statnet Project
  * 'news(package="networkDynamic")' for changes since last version
  * 'citation("networkDynamic")' for citation information
  * 'https://statnet.org' for help, support, and other information
  
  > require(sna)
  Loading required package: sna
  Warning message:
  In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE,  :
    there is no package called 'sna'
  > require(testthat)
  Loading required package: testthat
  > 
  > # ---- tests for tSnaStats ----
  > 
  > data(nd_test_nets)
  > data(moodyContactSim)
  > 
  > test_that('tSnaStats output as expected',{
  + 
  +   # vertex level measure
  +   output<-tSnaStats(moodyContactSim,'degree')
  +   
  +   expect_true(is.ts(output))
  +   expect_equal(ncol(output),network.size(moodyContactSim))
  +   expect_equal(nrow(output),756)
  +   
  +   # graph level measure
  +   output<-tSnaStats(moodyContactSim,'gden')
  +   expect_equal(ncol(output),1)
  +   expect_equal(nrow(output),756)
  +   
  +   # change sampling interval
  +   output<-tSnaStats(moodyContactSim,'gden',time.interval=100)
  +   expect_equal(ncol(output),1)
  +   expect_equal(nrow(output),8)
  +   
  +   # check start and end values
  +   expect_equal(attributes(tSnaStats(moodyContactSim,'gden',start=600,time.interval=50))$tsp,c(600.00, 750.00,   0.02))
  +   expect_equal(attributes(tSnaStats(moodyContactSim,'gden',end=600,time.interval=200))$tsp,c(40.000, 440.000,   0.005))
  +   
  +   expect_error(tSnaStats(nd_test_nets[[1]],'degree'),regexp = "must be a object of class 'networkDynamic'")
  +   
  +   # error for non supported function
  +   expect_error(tSnaStats(moodyContactSim,'foo'),regexp = 'not one of the sna package descriptive statistics currently supported')
  +   
  +   # test passing in function args (this would give error if FUN not passed in)
  +   tSnaStats(moodyContactSim,'centralization',FUN='degree',time.interval = 100)
  +   
  +   # test aggregate dur
  +   dyads<-network.dyadcount(moodyContactSim)
  +   expect_equal(as.numeric(tSnaStats(moodyContactSim,'gden',start=0,end=400,time.interval = 100,aggregate.dur=100)),c(1/dyads,0,2/dyads,0,2/dyads))
  +   # this one should miss all the edges
  +   expect_equal(as.numeric(tSnaStats(moodyContactSim,'gden',start=0,end=400,time.interval = 100,aggregate.dur=0)), c(0,0,0,0,0))
  +   
  + })
  ── Error: tSnaStats output as expected ─────────────────────────────────────────
  Error in `tSnaStats(moodyContactSim, "degree")`:  the sna package could not be loaded to provide summary functions
  Backtrace:
      ▆
   1. └─tsna::tSnaStats(moodyContactSim, "degree")
  Error:
  ! Test failed with 1 failure and 0 successes.
  Backtrace:
      ▆
   1. └─testthat::test_that(...)
   2.   └─testthat:::test_code(code, parent.frame())
   3.     ├─withr (local) `<fn>`()
   4.     └─reporter$end_test(context = reporter$.context, test = test)
   5.       └─cli::cli_abort(...)
   6.         └─rlang::abort(...)
  Execution halted