Running ‘testthat.R’ [68s/97s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(simDAG)
  > library(testthat)
  > library(data.table)
  
  Attaching package: 'data.table'
  
  The following object is masked from 'package:base':
  
      %notin%
  
  > library(igraph)
  
  Attaching package: 'igraph'
  
  The following object is masked from 'package:testthat':
  
      compare
  
  The following objects are masked from 'package:stats':
  
      decompose, spectrum
  
  The following object is masked from 'package:base':
  
      union
  
  > library(ggdag)
  
  Attaching package: 'ggdag'
  
  The following object is masked from 'package:stats':
  
      filter
  
  > 
  > data.table::setDTthreads(1)
  > 
  > test_check("simDAG")
  Saving _problems/test_dag-61.R
  t = 1 node = sickness2
  t = 1 node = sickness1
  t = 2 node = sickness2
  t = 2 node = sickness1
  t = 3 node = sickness2
  t = 3 node = sickness1
  t = 4 node = sickness2
  t = 4 node = sickness1
  t = 5 node = sickness2
  t = 5 node = sickness1
  starting worker pid=1164661 on localhost:11296 at 18:56:11.219
  starting worker pid=1164660 on localhost:11296 at 18:56:11.274
  
    |                                                                            
    |                                                                      |   0%Loading required package: simDAG
  Loading required package: simDAG
  loaded simDAG and set parent environment
  loaded simDAG and set parent environment
  
  Attaching package: ‘data.table’
  
  The following object is masked from ‘package:base’:
  
      %notin%
  
  
  Attaching package: ‘data.table’
  
  Loading required package: foreach
  The following object is masked from ‘package:base’:
  
      %notin%
  
  Loading required package: foreach
  Loading required package: rngtools
  Loading required package: rngtools
  
    |                                                                            
    |=======                                                               |  10%
    |                                                                            
    |==============                                                        |  20%
    |                                                                            
    |=====================                                                 |  30%
    |                                                                            
    |============================                                          |  40%
    |                                                                            
    |===================================                                   |  50%
    |                                                                            
    |==========================================                            |  60%
    |                                                                            
    |=================================================                     |  70%
    |                                                                            
    |========================================================              |  80%
    |                                                                            
    |===============================================================       |  90%
    |                                                                            
    |======================================================================| 100%starting worker pid=1166601 on localhost:11296 at 18:56:14.127
  starting worker pid=1166600 on localhost:11296 at 18:56:14.222
  Loading required package: simDAG
  loaded simDAG and set parent environment
  
  Attaching package: ‘data.table’
  
  Loading required package: simDAG
  The following object is masked from ‘package:base’:
  
      %notin%
  
  Loading required package: foreach
  loaded simDAG and set parent environment
  Loading required package: rngtools
  
  Attaching package: ‘data.table’
  
  The following object is masked from ‘package:base’:
  
      %notin%
  
  Loading required package: foreach
  Loading required package: rngtools
  starting worker pid=1169996 on localhost:11296 at 18:56:18.883
  starting worker pid=1169995 on localhost:11296 at 18:56:18.920
  Loading required package: simDAG
  Loading required package: simDAG
  loaded simDAG and set parent environment
  loaded simDAG and set parent environment
  
  Attaching package: ‘data.table’
  
  The following object is masked from ‘package:base’:
  
      %notin%
  
  Loading required package: foreach
  
  Attaching package: ‘data.table’
  
  The following object is masked from ‘package:base’:
  
      %notin%
  
  Loading required package: foreach
  Loading required package: rngtools
  Loading required package: rngtools
  starting worker pid=1173743 on localhost:11296 at 18:56:23.305
  starting worker pid=1173742 on localhost:11296 at 18:56:23.383
  
    |                                                                            
    |                                                                      |   0%Loading required package: simDAG
  loaded simDAG and set parent environment
  Loading required package: simDAG
  loaded simDAG and set parent environment
  
  Attaching package: ‘data.table’
  
  The following object is masked from ‘package:base’:
  
      %notin%
  
  Loading required package: foreach
  
  Attaching package: ‘data.table’
  
  The following object is masked from ‘package:base’:
  
      %notin%
  
  Loading required package: rngtools
  Loading required package: foreach
  Loading required package: rngtools
  
    |                                                                            
    |=======                                                               |  10%
    |                                                                            
    |==============                                                        |  20%
    |                                                                            
    |=====================                                                 |  30%
    |                                                                            
    |============================                                          |  40%
    |                                                                            
    |===================================                                   |  50%
    |                                                                            
    |==========================================                            |  60%
    |                                                                            
    |=================================================                     |  70%
    |                                                                            
    |========================================================              |  80%
    |                                                                            
    |===============================================================       |  90%
    |                                                                            
    |======================================================================| 100%starting worker pid=1176211 on localhost:11296 at 18:56:26.776
  starting worker pid=1176210 on localhost:11296 at 18:56:26.866
  
    |                                                                            
    |                                                                      |   0%Loading required package: simDAG
  loaded simDAG and set parent environment
  
  Attaching package: ‘data.table’
  
  The following object is masked from ‘package:base’:
  
      %notin%
  
  Loading required package: foreach
  Loading required package: rngtools
  Loading required package: simDAG
  loaded simDAG and set parent environment
  
  Attaching package: ‘data.table’
  
  The following object is masked from ‘package:base’:
  
      %notin%
  
  Loading required package: foreach
  Loading required package: rngtools
  
    |                                                                            
    |===================================                                   |  50%
    |                                                                            
    |======================================================================| 100%starting worker pid=1178190 on localhost:11296 at 18:56:29.663
  starting worker pid=1178183 on localhost:11296 at 18:56:29.676
  
    |                                                                            
    |                                                                      |   0%Loading required package: simDAG
  loaded simDAG and set parent environment
  
  Attaching package: ‘data.table’
  
  The following object is masked from ‘package:base’:
  
      %notin%
  
  Loading required package: foreach
  Loading required package: simDAG
  Loading required package: rngtools
  loaded simDAG and set parent environment
  
  Attaching package: ‘data.table’
  
  The following object is masked from ‘package:base’:
  
      %notin%
  
  Loading required package: foreach
  Loading required package: rngtools
  
    |                                                                            
    |===================================                                   |  50%
    |                                                                            
    |======================================================================| 100%[ FAIL 1 | WARN 17 | SKIP 55 | PASS 1053 ]
  
  ══ Skipped tests (55) ══════════════════════════════════════════════════════════
  • On CRAN (55): 'test_DAG.network_S3.r:4:1', 'test_DAG.network_S3.r:10:1',
    'test_DAG.network_S3.r:18:1', 'test_DAG.network_S3.r:24:1',
    'test_DAG.network_S3.r:32:1', 'test_DAG.network_S3.r:44:1',
    'test_DAG.network_S3.r:50:1', 'test_DAG.network_S3.r:58:1',
    'test_DAG.network_S3.r:64:1', 'test_DAG.network_S3.r:72:1',
    'test_DAG.node_S3.r:4:1', 'test_DAG.node_S3.r:9:1',
    'test_DAG.node_S3.r:14:1', 'test_DAG.node_S3.r:19:1',
    'test_DAG.node_S3.r:24:1', 'test_DAG.node_S3.r:32:1',
    'test_DAG.node_S3.r:37:1', 'test_DAG.node_S3.r:42:1',
    'test_DAG.node_S3.r:47:1', 'test_DAG.node_S3.r:52:1', 'test_dag.r:14:1',
    'test_dag.r:21:1', 'test_dag.r:34:1', 'test_dag.r:44:1', 'test_dag.r:64:1',
    'test_node.r:548:1', 'test_node_rsurv.r:99:3', 'test_plot.DAG.r:11:1',
    'test_plot.DAG.r:15:1', 'test_plot.DAG.r:19:1', 'test_plot.DAG.r:23:1',
    'test_plot.DAG.r:27:1', 'test_plot.DAG.r:31:1', 'test_plot.DAG.r:35:1',
    'test_plot.DAG.r:40:1', 'test_plot.DAG.r:44:1', 'test_plot.DAG.r:52:1',
    'test_plot.DAG.r:59:1', 'test_plot.DAG.r:64:1', 'test_plot.DAG.r:69:1',
    'test_plot.DAG.r:100:1', 'test_plot.DAG.r:104:1', 'test_plot.DAG.r:108:1',
    'test_plot.simDT.r:24:1', 'test_plot.simDT.r:28:1', 'test_plot.simDT.r:32:1',
    'test_plot.simDT.r:36:1', 'test_plot.simDT.r:40:1', 'test_plot.simDT.r:48:1',
    'test_plot.simDT.r:56:1', 'test_simDT_S3.r:11:1', 'test_simDT_S3.r:15:1',
    'test_simDT_S3.r:20:1', 'test_simDT_S3.r:25:1',
    'test_sim_discrete_event.r:693:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test_dag.r:61:3'): S3 summary method with filled dag ────────────────
  Error in `file(file, if (append) "a" else "w")`: cannot open the connection
  Backtrace:
      ▆
   1. └─testthat::expect_snapshot_output(summary(dag)) at test_dag.r:61:3
   2.   ├─testthat:::with_is_snapshotting(...)
   3.   └─testthat::capture_output_lines(x, print = TRUE, width = NULL)
   4.     └─testthat:::eval_with_output(code, print = print, width = width)
   5.       └─withr::with_output_sink(path, withVisible(code))
   6.         └─withr:::set_output_sink(file = new, append = append, split = split)
   7.           └─withr:::output_sink(file = file, append = append, split = split)
   8.             └─base::sink(file = file, append = append, type = "output", split = split)
   9.               └─base::file(file, if (append) "a" else "w")
  
  [ FAIL 1 | WARN 17 | SKIP 55 | PASS 1053 ]
  Error:
  ! Test failures.
  Execution halted