Running ‘degree_tests.R’
  Running ‘density_tests.R’
  Running ‘durations_tests.R’
  Running ‘fromDissTests.R’
  Running ‘pShift_tests.R’
  Running ‘path_tests.R’
  Running ‘reachable_tests.R’
  Running ‘statsWrapper_tests.R’
  Running ‘timeProjectedNetwork_tests.R’
Running the tests in ‘tests/degree_tests.R’ failed.
Complete output:
  > # tests for temporal degree functions
  > library(tsna)
  Loading required package: network
  network: Classes for Relational Data
  Version 1.16.0 created on 2019-11-30.
  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.
  
  Loading required package: networkDynamic
  
  networkDynamic: version 0.10.1, created on 2020-01-16
  Copyright (c) 2020, Carter T. Butts, University of California -- Irvine
                      Ayn Leslie-Cook, University of Washington
                      Pavel N. Krivitsky, University of Wollongong
                      Skye Bender-deMoll, University of Washington
                      with contributions from
                      Zack Almquist, University of California -- Irvine
                      David R. Hunter, Penn State University
                      Li Wang
                      Kirk Li, University of Washington
                      Steven M. Goodreau, University of Washington
                      Jeffrey Horner
                      Martina Morris, University of Washington
  Based on "statnet" project software (statnet.org).
  For license and citation information see statnet.org/attribution
  or type citation("networkDynamic").
  
  > library(testthat)
  Error in library(testthat) : there is no package called 'testthat'
  Execution halted
Running the tests in ‘tests/density_tests.R’ failed.
Complete output:
  > # tests for temporal density functions
  > require(tsna)
  Loading required package: tsna
  Loading required package: network
  network: Classes for Relational Data
  Version 1.16.0 created on 2019-11-30.
  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.
  
  Loading required package: networkDynamic
  
  networkDynamic: version 0.10.1, created on 2020-01-16
  Copyright (c) 2020, Carter T. Butts, University of California -- Irvine
                      Ayn Leslie-Cook, University of Washington
                      Pavel N. Krivitsky, University of Wollongong
                      Skye Bender-deMoll, University of Washington
                      with contributions from
                      Zack Almquist, University of California -- Irvine
                      David R. Hunter, Penn State University
                      Li Wang
                      Kirk Li, University of Washington
                      Steven M. Goodreau, University of Washington
                      Jeffrey Horner
                      Martina Morris, University of Washington
  Based on "statnet" project software (statnet.org).
  For license and citation information see statnet.org/attribution
  or type citation("networkDynamic").
  
  > require(testthat)
  Loading required package: testthat
  Warning message:
  In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE,  :
    there is no package called 'testthat'
  > require(networkDynamicData)
  Loading required package: networkDynamicData
  > 
  > # tests of argument processing
  > data(moodyContactSim)
  > 
  > expect_error(tEdgeDensity(0),regexp='first argument is a networkDynamic')
  Error in expect_error(tEdgeDensity(0), regexp = "first argument is a networkDynamic") : 
    could not find function "expect_error"
  Execution halted
Running the tests in ‘tests/durations_tests.R’ failed.
Complete output:
  > # some tests for the basic durations function 
  > require(tsna)
  Loading required package: tsna
  Loading required package: network
  network: Classes for Relational Data
  Version 1.16.0 created on 2019-11-30.
  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.
  
  Loading required package: networkDynamic
  
  networkDynamic: version 0.10.1, created on 2020-01-16
  Copyright (c) 2020, Carter T. Butts, University of California -- Irvine
                      Ayn Leslie-Cook, University of Washington
                      Pavel N. Krivitsky, University of Wollongong
                      Skye Bender-deMoll, University of Washington
                      with contributions from
                      Zack Almquist, University of California -- Irvine
                      David R. Hunter, Penn State University
                      Li Wang
                      Kirk Li, University of Washington
                      Steven M. Goodreau, University of Washington
                      Jeffrey Horner
                      Martina Morris, University of Washington
  Based on "statnet" project software (statnet.org).
  For license and citation information see statnet.org/attribution
  or type citation("networkDynamic").
  
  > require(testthat)
  Loading required package: testthat
  Warning message:
  In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE,  :
    there is no package called 'testthat'
  > require(networkDynamicData)
  Loading required package: networkDynamicData
  > 
  > # ------ edgeDuration tests -------
  > 
  > data(moodyContactSim)
  > expect_equal(edgeDuration(moodyContactSim),c(32, 33, 32, 26, 30, 24, 32, 30, 26, 27, 27, 32, 31, 27, 26, 34, 44, 26))
  Error in expect_equal(edgeDuration(moodyContactSim), c(32, 33, 32, 26,  : 
    could not find function "expect_equal"
  Execution halted
Running the tests in ‘tests/fromDissTests.R’ failed.
Complete output:
  > # tests for formation and dissolution functions
  > require(tsna)
  Loading required package: tsna
  Loading required package: network
  network: Classes for Relational Data
  Version 1.16.0 created on 2019-11-30.
  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.
  
  Loading required package: networkDynamic
  
  networkDynamic: version 0.10.1, created on 2020-01-16
  Copyright (c) 2020, Carter T. Butts, University of California -- Irvine
                      Ayn Leslie-Cook, University of Washington
                      Pavel N. Krivitsky, University of Wollongong
                      Skye Bender-deMoll, University of Washington
                      with contributions from
                      Zack Almquist, University of California -- Irvine
                      David R. Hunter, Penn State University
                      Li Wang
                      Kirk Li, University of Washington
                      Steven M. Goodreau, University of Washington
                      Jeffrey Horner
                      Martina Morris, University of Washington
  Based on "statnet" project software (statnet.org).
  For license and citation information see statnet.org/attribution
  or type citation("networkDynamic").
  
  > require(testthat)
  Loading required package: testthat
  Warning message:
  In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE,  :
    there is no package called 'testthat'
  > require(networkDynamicData)
  Loading required package: networkDynamicData
  > 
  > # ------ tEdgeDissolution -------
  > test<-network.initialize(4,directed = TRUE,loops = FALSE)
  > add.edges.active(test,1,2,onset = 0,terminus=3)
  > # check for ts class
  > expect_true(is.ts(tEdgeDissolution(test,start=0,end=3)))
  Error in expect_true(is.ts(tEdgeDissolution(test, start = 0, end = 3))) : 
    could not find function "expect_true"
  Execution halted
Running the tests in ‘tests/pShift_tests.R’ failed.
Complete output:
  > library(tsna)
  Loading required package: network
  network: Classes for Relational Data
  Version 1.16.0 created on 2019-11-30.
  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.
  
  Loading required package: networkDynamic
  
  networkDynamic: version 0.10.1, created on 2020-01-16
  Copyright (c) 2020, Carter T. Butts, University of California -- Irvine
                      Ayn Leslie-Cook, University of Washington
                      Pavel N. Krivitsky, University of Wollongong
                      Skye Bender-deMoll, University of Washington
                      with contributions from
                      Zack Almquist, University of California -- Irvine
                      David R. Hunter, Penn State University
                      Li Wang
                      Kirk Li, University of Washington
                      Steven M. Goodreau, University of Washington
                      Jeffrey Horner
                      Martina Morris, University of Washington
  Based on "statnet" project software (statnet.org).
  For license and citation information see statnet.org/attribution
  or type citation("networkDynamic").
  
  > library(testthat)
  Error in library(testthat) : there is no package called 'testthat'
  Execution halted
Running the tests in ‘tests/path_tests.R’ failed.
Complete output:
  > # tests for the path distance functions
  > 
  > require(tsna)
  Loading required package: tsna
  Loading required package: network
  network: Classes for Relational Data
  Version 1.16.0 created on 2019-11-30.
  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.
  
  Loading required package: networkDynamic
  
  networkDynamic: version 0.10.1, created on 2020-01-16
  Copyright (c) 2020, Carter T. Butts, University of California -- Irvine
                      Ayn Leslie-Cook, University of Washington
                      Pavel N. Krivitsky, University of Wollongong
                      Skye Bender-deMoll, University of Washington
                      with contributions from
                      Zack Almquist, University of California -- Irvine
                      David R. Hunter, Penn State University
                      Li Wang
                      Kirk Li, University of Washington
                      Steven M. Goodreau, University of Washington
                      Jeffrey Horner
                      Martina Morris, University of Washington
  Based on "statnet" project software (statnet.org).
  For license and citation information see statnet.org/attribution
  or type citation("networkDynamic").
  
  > require(testthat)
  Loading required package: testthat
  Warning message:
  In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE,  :
    there is no package called 'testthat'
  > require(networkDynamicData)
  Loading required package: networkDynamicData
  > linegraph<-network.initialize(10)
  > add.edges(linegraph,tail=1:9,head=2:10)
  > 
  > data(concurrencyComparisonNets)
  > 
  > 
  > 
  > # ----- tests for tPath ----
  > 
  > 
  > 
  > test_that('tPath basic tests',{
  +   line<-network.initialize(4)
  +   add.edges.active(line,tail=1:3,head=2:4,onset=0:2,terminus=1:3)
  +   # check return format
  +   expect_equal(names(tPath(line,v=1)),c('tdist','previous','gsteps','start','end','direction','type'))
  +   expect_is(tPath(line,v=1),class = 'tPath')
  +   
  +   # check args
  +   expect_error(tPath(line,v=1,type='foo'))
  +   expect_error(tPath(line,v=1,direction='foo'))
  +   
  +   # check unimplemented
  +   expect_error(tPath(line,v=1,type='latest.depart'),regexp='method is not yet implemented')
  +   
  +   # check basic line with default earliest arriving fwd
  +   expect_equal(tPath(line,v=1)$tdist,c(0, 0, 1, 2))
  +   expect_equal(tPath(line,v=2)$tdist,c(Inf,0,1,2))
  +   
  +   # test starting and ending flags
  +   expect_equal(tPath(line,v=1,start=0.5)$tdist, c(0,0,0.5,1.5))
  +   expect_equal(tPath(line,v=1,start=2)$tdist, c(0,Inf,Inf,Inf))
  +   expect_equal(tPath(line,v=1,end=2)$tdist, c(0,0,1,Inf))
  +   
  +   line<-network.initialize(4)
  +   add.edges.active(line,tail=1:3,head=2:4,onset=c(2,1,3),terminus=c(3,2,4))
  +   expect_equal(tPath(line,v=1)$tdist,c(0,1,Inf,Inf))
  +   
  +   # test active default
  +   test<-as.networkDynamic(network.initialize(4))
  +   add.edges(test,1:3,2:4)
  +   expect_equal(tPath(test,v=1,start=0)$tdist,c(0,0,0,0))
  +   expect_equal(tPath(test,v=1,active.default=FALSE,start=0)$tdist,c(0,Inf,Inf,Inf))
  +   
  +   test<-network.initialize(4)
  +   add.edges(test,1:3,3:4)
  +   activate.edges(test,e=1,at=2)
  +   
  +   # test start message
  +   test<-as.networkDynamic(network.initialize(4))
  +   expect_message(tPath(test,v=1),regexp="'start' time parameter for paths was not specified")
  +   
  +   # test wrong object
  +   expect_error(tPath(network.initialize(3)),regexp='first argument must be a networkDynamic object')
  +   
  +   # test no v specified
  +   expect_error(tPath(as.networkDynamic(network.initialize(2)),regexp='argument with valid vertex ids was not given'))
  +   
  +   # test on network size 0
  +   expect_equal(tPath(as.networkDynamic(network.initialize(0)),start=0,v=numeric(0))$tdist,numeric(0))
  + })
  Error in test_that("tPath basic tests", { : 
    could not find function "test_that"
  Execution halted
Running the tests in ‘tests/reachable_tests.R’ failed.
Complete output:
  > # test the forward and backward componetnt functions
  > require(tsna)
  Loading required package: tsna
  Loading required package: network
  network: Classes for Relational Data
  Version 1.16.0 created on 2019-11-30.
  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.
  
  Loading required package: networkDynamic
  
  networkDynamic: version 0.10.1, created on 2020-01-16
  Copyright (c) 2020, Carter T. Butts, University of California -- Irvine
                      Ayn Leslie-Cook, University of Washington
                      Pavel N. Krivitsky, University of Wollongong
                      Skye Bender-deMoll, University of Washington
                      with contributions from
                      Zack Almquist, University of California -- Irvine
                      David R. Hunter, Penn State University
                      Li Wang
                      Kirk Li, University of Washington
                      Steven M. Goodreau, University of Washington
                      Jeffrey Horner
                      Martina Morris, University of Washington
  Based on "statnet" project software (statnet.org).
  For license and citation information see statnet.org/attribution
  or type citation("networkDynamic").
  
  > require(testthat)
  Loading required package: testthat
  Warning message:
  In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE,  :
    there is no package called 'testthat'
  > require(networkDynamicData)
  Loading required package: networkDynamicData
  > linegraph<-network.initialize(10)
  > add.edges(linegraph,tail=1:9,head=2:10)
  > 
  > # ---- forward.reachable tests -----
  > # test non timed version error
  > test<-linegraph
  > expect_error(forward.reachable(test,v=1),'must be a networkDynamic')
  Error in expect_error(forward.reachable(test, v = 1), "must be a networkDynamic") : 
    could not find function "expect_error"
  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: Classes for Relational Data
  Version 1.16.0 created on 2019-11-30.
  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.
  
  Loading required package: networkDynamic
  
  networkDynamic: version 0.10.1, created on 2020-01-16
  Copyright (c) 2020, Carter T. Butts, University of California -- Irvine
                      Ayn Leslie-Cook, University of Washington
                      Pavel N. Krivitsky, University of Wollongong
                      Skye Bender-deMoll, University of Washington
                      with contributions from
                      Zack Almquist, University of California -- Irvine
                      David R. Hunter, Penn State University
                      Li Wang
                      Kirk Li, University of Washington
                      Steven M. Goodreau, University of Washington
                      Jeffrey Horner
                      Martina Morris, University of Washington
  Based on "statnet" project software (statnet.org).
  For license and citation information see statnet.org/attribution
  or type citation("networkDynamic").
  
  > require(sna)
  Loading required package: sna
  Loading required package: statnet.common
  
  Attaching package: 'statnet.common'
  
  The following object is masked from 'package:base':
  
      order
  
  sna: Tools for Social Network Analysis
  Version 2.5 created on 2019-12-09.
  copyright (c) 2005, Carter T. Butts, University of California-Irvine
   For citation information, type citation("sna").
   Type help(package="sna") to get started.
  
  > require(testthat)
  Loading required package: testthat
  Warning message:
  In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE,  :
    there is no package called '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 in test_that("tSnaStats output as expected", { : 
    could not find function "test_that"
  Execution halted
Running the tests in ‘tests/timeProjectedNetwork_tests.R’ failed.
Complete output:
  > # tests for the time-projected functions
  > 
  > require(tsna)
  Loading required package: tsna
  Loading required package: network
  network: Classes for Relational Data
  Version 1.16.0 created on 2019-11-30.
  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.
  
  Loading required package: networkDynamic
  
  networkDynamic: version 0.10.1, created on 2020-01-16
  Copyright (c) 2020, Carter T. Butts, University of California -- Irvine
                      Ayn Leslie-Cook, University of Washington
                      Pavel N. Krivitsky, University of Wollongong
                      Skye Bender-deMoll, University of Washington
                      with contributions from
                      Zack Almquist, University of California -- Irvine
                      David R. Hunter, Penn State University
                      Li Wang
                      Kirk Li, University of Washington
                      Steven M. Goodreau, University of Washington
                      Jeffrey Horner
                      Martina Morris, University of Washington
  Based on "statnet" project software (statnet.org).
  For license and citation information see statnet.org/attribution
  or type citation("networkDynamic").
  
  > library(networkDynamicData)
  > require(testthat)
  Loading required package: testthat
  Warning message:
  In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE,  :
    there is no package called 'testthat'
  > 
  > # trivial example network, directed case
  > test<-network.initialize(3)
  > add.edges.active(test,tail=1,head=2,onset=0,terminus=1)
  > add.edges.active(test,tail=2,head=3,onset=1,terminus=2)
  > testProj<-timeProjectedNetwork(test,start=0,end=2)
  > expect_equal(as.matrix(testProj),
  +               matrix(
  +               c(0, 1, 0, 1, 0, 0,
  +                 0, 0, 0, 0, 1, 0,
  +                 0, 0, 0, 0, 0, 1,
  +                 0, 0, 0, 0, 0, 0,
  +                 0, 0, 0, 0, 0, 1,
  +                 0, 0, 0, 0, 0, 0),ncol=6,byrow=TRUE),check.attributes=FALSE)
  Error in expect_equal(as.matrix(testProj), matrix(c(0, 1, 0, 1, 0, 0,  : 
    could not find function "expect_equal"
  Execution halted