Running ‘testthat.R’ [36s/40s]
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: ..........................
  diffnet-indexing: 
  Checking diffnet-indexing: ................
  diffnet-methods: 
  plot_diffnet, threshold, and exposure: ........
  Threshold functions: .............
  Infectiousness and susceptibility (plot methods): ........W..
  Other methods: .........................1....
  egonets: 
  Egonets: .......
  examples: 
  foreign: 
  Foreign function: ........
  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: 2.3
  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-methods.R:244:3): Arithmetic and others ──────────────
  Error in `getMethod("t", "dgCMatrix")`: no method found for function 't' and signature dgCMatrix
  Backtrace:
   1. base::t(g)
        at test-diffnet-methods.R:244:2
   3. netdiffuseR:::t.diffnet(g)
   6. methods::getMethod("t", "dgCMatrix")
  
  ── 2. Error (test-netdiffuser_extra.R:7:3): sp_trimatl ─────────────────────────
  Error in `methods::getMethod("t", "dgCMatrix")`: no method found for function 't' and signature dgCMatrix
  Backtrace:
   1. testthat::expect_equal(...)
        at test-netdiffuser_extra.R:7:2
   4. methods::getMethod("t", "dgCMatrix")
  
  ── 3. Error (test-netdiffuser_extra.R:24:3): sp_as_undirected ──────────────────
  Error in `methods::getMethod("t", "dgCMatrix")`: no method found for function 't' and signature dgCMatrix
  Backtrace:
   1. methods::getMethod("t", "dgCMatrix")
        at test-netdiffuser_extra.R:24:2
  
  ══ DONE ════════════════════════════════════════════════════════════════════════
  Error: Test failures
  Execution halted