Running ‘testthat.R’
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(NetworkInference)
  NetworkInference: Inferring latent diffusion networks.
  Version 1.2.3
  copyright (c) 2016, Fridolin Linder, Pennsylvania State University
                      Bruce Desmarais, Pennsylvania State University
  For citation information, type citation("NetworkInference").
  Type help("NetworkInference") to get started.
  
  > 
  > test_check("NetworkInference")
  ── 1. Error: Long format (@test_cascade.R#11)  ─────────────────────────────────
  x must be logical or numeric
  1: simulate_rnd_cascades(n_casc, n_nodes) at testthat/test_cascade.R:11
  2: qassert(n_cascades, "X1[1,)")
  
  ── 2. Error: Wide format (@test_cascade.R#26)  ─────────────────────────────────
  x must be logical or numeric
  1: simulate_rnd_cascades(n_casc, n_nodes) at testthat/test_cascade.R:26
  2: qassert(n_cascades, "X1[1,)")
  
  ── 3. Error: Subsetting works (@test_cascade.R#38)  ────────────────────────────
  x must be integer or double
  1: subset_cascade_time(cascades, 10, 20, drop = TRUE) at testthat/test_cascade.R:38
  2: qassert(start_time, "N1")
  
  ── 4. Error: netinf produces the edges as original netinf executable. (@test_net
  STRING_ELT() can only be applied to a 'character vector', not a 'symbol'
  1: netinf(cascades, params = 1, trans_mod = "exponential", n_edges = 5, quiet = TRUE) at testthat/test_netinf.R:8
  2: qassert(trans_mod, "S1")
  
  ── 5. Error: Plotting function runs. (@test_plot.R#10)  ────────────────────────
  STRING_ELT() can only be applied to a 'character vector', not a 'symbol'
  1: netinf(cascades, n_edges = 6, params = 1, quiet = TRUE) at testthat/test_plot.R:10
  2: qassert(trans_mod, "S1")
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 0 SKIPPED: 0 FAILED: 5
  1. Error: Long format (@test_cascade.R#11) 
  2. Error: Wide format (@test_cascade.R#26) 
  3. Error: Subsetting works (@test_cascade.R#38) 
  4. Error: netinf produces the edges as original netinf executable. (@test_netinf.R#8) 
  5. Error: Plotting function runs. (@test_plot.R#10) 
  
  Error: testthat unit tests failed
  Execution halted