Running ‘testthat.R’ [27s/37s]
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")
  adjmat: 
  Read/Write graphs edgelist to adjmat and vice-versa: ..............
  Time of Adoption (toa_mat, toa_dif): ..........
  Isolated vertices (isolated, drop_isolated): .............
  bass: 
  Bass Diffusion model: ...
  bootnet: 
  Network bootstrap: ........
  cumulative_adopt_count: 
  Cumulative adopt count, and hazard rate: ....
  dgr: 
  Degree function: .................
  diffnet-class: 
  Diffnet class and methods: ..........1...............
  diffnet-indexing: 
  Checking diffnet-indexing: ................
  diffnet-methods: 
  plot_diffnet, threshold, and exposure: ........
  Threshold functions: .............
  Infectiousness and susceptibility (plot methods): ........W..
  Other methods: ..................................
  egonets: 
  Egonets: .......
  examples: 
  foreign: 
  Foreign function: 23
  formula: 
  Diffusion Regression: ....
  graph_data: 
  Graph objects: ...............
  imports: 
  Silly tests for imports.R: .
  infect_suscept: 
  Infection and susceptibility: ................
  mentor: 
  Mentor matching: ..
  misc: 
  Misc functions: .......
  moran: 
  Morans I: .
  netdiffuser_extra: 
  C++ extra functions: ...
  options: 
  Testing package .onLoad and options: ....
  plot_diffnet2: 
  Set of functions used in: plot_diffnet2: ........
  random_graph: 
  Random graphs: ................
  rdiffnet: 
  Random diffusion graphs: .........
  read_write_foreign: 
  Read/write foreign formats: ..
  rewire: 
  Rewiring algorithms: ......................
  select_egoalter: 
  Select ego/alter: ....
  spatial: 
  Spatial functions (beta): ...
  stats: 
  Stats functions (including exposure): ...............................
  struct_equiv: 
  Structural equivalence: ..................
  struct_test: 
  Structural test: .S......
  survey_to_diffnet: 
  Survey to diffnet: ...................
  
  ══ Skipped ═════════════════════════════════════════════════════════════════════
  1. struct_test should be reproducible (parallel version) (test-struct_test.R:23:3) - Reason: On CRAN
  
  ══ Warnings ════════════════════════════════════════════════════════════════════
  1. Returning threshold equal to the infect/suscept funs (test-diffnet-methods.R:133:3) - When applying logscale some observations are missing.
  
  ══ Failed ══════════════════════════════════════════════════════════════════════
  ── 1. Error (test-diffnet-class.R:94:3): Passing id.and.per.vars gives the right
  Error in `check_as_diffnet_attrs(vertex.dyn.attrs, meta, TRUE, id.and.per.vars)`: All elements in the list -vertex.dyn.attrs- should be of the same class.
  Backtrace:
   1. netdiffuseR::survey_to_diffnet(...) test-diffnet-class.R:94:2
   2. netdiffuseR::new_diffnet(...)
   3. netdiffuseR:::check_as_diffnet_attrs(...)
  
  ── 2. Error (test-foreign.R:9:3): igraph back and forth ────────────────────────
  Error in `check_as_diffnet_attrs(vertex.dyn.attrs, meta, TRUE, id.and.per.vars)`: All elements in the list -vertex.dyn.attrs- should be of the same class.
  Backtrace:
   1. netdiffuseR::igraph_to_diffnet(graph.list = ig, toavar = "toa") test-foreign.R:9:2
   2. netdiffuseR::new_diffnet(...)
   3. netdiffuseR:::check_as_diffnet_attrs(...)
  
  ── 3. Error (test-foreign.R:45:3): network back and forth ──────────────────────
  Error in `check_as_diffnet_attrs(vertex.dyn.attrs, meta, TRUE, id.and.per.vars)`: All elements in the list -vertex.dyn.attrs- should be of the same class.
  Backtrace:
   1. netdiffuseR::network_to_diffnet(graph.list = net, toavar = "toa") test-foreign.R:45:2
   2. netdiffuseR::new_diffnet(...)
   3. netdiffuseR:::check_as_diffnet_attrs(...)
  
  ══ DONE ════════════════════════════════════════════════════════════════════════
  Error: Test failures
  Execution halted