Running ‘testthat.R’ [25s/25s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(netdiffuseR)
  
  Attaching package: 'netdiffuseR'
  
  The following object is masked from 'package:base':
  
      %*%
  
  > 
  > Sys.setenv("R_TESTS" = "")
  > 
  > test_check("netdiffuseR", reporter = "summary")
  Read/Write graphs edgelist to adjmat and vice-versa: ..............
  Time of Adoption (toa_mat, toa_dif): ..........
  Isolated vertices (isolated, drop_isolated): .............
  Bass Diffusion model: ...
  Network bootstrap: ........
  Cumulative adopt count, and hazard rate: ....
  Degree function: .................
  Diffnet class and methods: ...........................
  Checking diffnet-indexing: ................
  plot_diffnet, threshold, and exposure: ........
  Threshold functions: .............
  Infectiousness and susceptibility (plot methods): ..........
  Other methods: ..................................
  Egonets: .......
  Foreign function: ........
  Graph objects: ...............
  Silly tests for imports.R: .
  Infection and susceptibility: ................
  Mentor matching: .1
  Misc functions: .......
  Morans I: .
  C++ extra functions: ...
  Testing package .onLoad and options: ....
  Set of functions used in: plot_diffnet2: ........
  Random graphs: ................
  Random diffusion graphs: .........
  Read/write foreign formats: ..
  Rewiring algorithms: ......................
  Select ego/alter: ....
  Spatial functions (beta): ...
  Stats functions (including exposure): ...............................
  Structural equivalence: ..................
  Structural test: .S......
  Survey to diffnet: ...................
  
  Skipped ------------------------------------------------------------------------
  1. struct_test should be reproducible (parallel version) (@test-struct_test.R#23) - On CRAN
  
  Failed -------------------------------------------------------------------------
  1. Error: Plot mentor (@test-mentor.r#23) --------------------------------------
  incorrect number of dimensions
  1: expect_silent(plot(ans)) at testthat/test-mentor.r:23
  2: evaluate_promise(object)
  3: with_sink(temp, withCallingHandlers(withVisible(code), warning = handle_warning, 
         message = handle_message))
  4: withCallingHandlers(withVisible(code), warning = handle_warning, message = handle_message)
  5: withVisible(code)
  6: plot(ans)
  7: plot.diffnet_mentor(ans)
  8: plot(ig, layout = rbind(c(-0.4, -1.3), c(0.15, -1.3)), add = TRUE, vertex.size = 5, 
         rescale = FALSE, vertex.label.dist = 1, vertex.label.degree = 0)
  9: plot.igraph(ig, layout = rbind(c(-0.4, -1.3), c(0.15, -1.3)), add = TRUE, vertex.size = 5, 
         rescale = FALSE, vertex.label.dist = 1, vertex.label.degree = 0)
  
  DONE ===========================================================================
  Error: Test failures
  Execution halted