Running ‘testthat.R’ [44s/60s]
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
  
  > 
  > data.table::setDTthreads(1)
  > 
  > test_check("simDAG")
  Saving _problems/test_node_rsurv-11.R
  Saving _problems/test_node_rsurv-24.R
  Saving _problems/test_node_rsurv-37.R
  Saving _problems/test_node_rsurv-50.R
  Saving _problems/test_node_rsurv-63.R
  Saving _problems/test_node_rsurv-76.R
  Saving _problems/test_node_rsurv-90.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=1090246 on localhost:11437 at 23:51:28.963
  starting worker pid=1090248 on localhost:11437 at 23:51:29.054
  
    |                                                                            
    |                                                                      |   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
  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: rngtools
  
    |                                                                            
    |=======                                                               |  10%
    |                                                                            
    |==============                                                        |  20%
    |                                                                            
    |=====================                                                 |  30%
    |                                                                            
    |============================                                          |  40%
    |                                                                            
    |===================================                                   |  50%
    |                                                                            
    |==========================================                            |  60%
    |                                                                            
    |=================================================                     |  70%
    |                                                                            
    |========================================================              |  80%
    |                                                                            
    |===============================================================       |  90%
    |                                                                            
    |======================================================================| 100%starting worker pid=1092805 on localhost:11437 at 23:51:31.141
  starting worker pid=1092806 on localhost:11437 at 23:51:31.296
  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
  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: rngtools
  starting worker pid=1096551 on localhost:11437 at 23:51:34.261
  starting worker pid=1096552 on localhost:11437 at 23:51:34.301
  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=1099571 on localhost:11437 at 23:51:36.815
  starting worker pid=1099573 on localhost:11437 at 23:51:36.967
  
    |                                                                            
    |                                                                      |   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: 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: foreach
  Loading required package: rngtools
  Loading required package: rngtools
  
    |                                                                            
    |===================================                                   |  50%
    |                                                                            
    |======================================================================| 100%[ FAIL 7 | WARN 14 | SKIP 54 | PASS 883 ]
  
  ══ Skipped tests (54) ══════════════════════════════════════════════════════════
  • On CRAN (54): '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:51:1',
    'test_dag.r:64:1', 'test_node.r:548:1', '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'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test_node_rsurv.r:11:3'): general test case aftreg ──────────────────
  Error: An error occured when processing node 'Y'. The message was:
  Error in loadNamespace(name): there is no package called 'rsurv'
  
  Backtrace:
      ▆
   1. └─simDAG::sim_from_dag(dag, n_sim = 100) at test_node_rsurv.r:11:3
   2.   └─base::tryCatch(...)
   3.     └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   4.       └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   5.         └─value[[3L]](cond)
  ── Error ('test_node_rsurv.r:24:3'): general test case ahreg ───────────────────
  Error: An error occured when processing node 'Y'. The message was:
  Error in loadNamespace(name): there is no package called 'rsurv'
  
  Backtrace:
      ▆
   1. └─simDAG::sim_from_dag(dag, n_sim = 100) at test_node_rsurv.r:24:3
   2.   └─base::tryCatch(...)
   3.     └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   4.       └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   5.         └─value[[3L]](cond)
  ── Error ('test_node_rsurv.r:37:3'): general test case ehreg ───────────────────
  Error: An error occured when processing node 'Y'. The message was:
  Error in loadNamespace(name): there is no package called 'rsurv'
  
  Backtrace:
      ▆
   1. └─simDAG::sim_from_dag(dag, n_sim = 100) at test_node_rsurv.r:37:3
   2.   └─base::tryCatch(...)
   3.     └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   4.       └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   5.         └─value[[3L]](cond)
  ── Error ('test_node_rsurv.r:50:3'): general test case ypreg ───────────────────
  Error: An error occured when processing node 'Y'. The message was:
  Error in loadNamespace(name): there is no package called 'rsurv'
  
  Backtrace:
      ▆
   1. └─simDAG::sim_from_dag(dag, n_sim = 100) at test_node_rsurv.r:50:3
   2.   └─base::tryCatch(...)
   3.     └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   4.       └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   5.         └─value[[3L]](cond)
  ── Error ('test_node_rsurv.r:63:3'): general test case poreg ───────────────────
  Error: An error occured when processing node 'Y'. The message was:
  Error in loadNamespace(name): there is no package called 'rsurv'
  
  Backtrace:
      ▆
   1. └─simDAG::sim_from_dag(dag, n_sim = 100) at test_node_rsurv.r:63:3
   2.   └─base::tryCatch(...)
   3.     └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   4.       └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   5.         └─value[[3L]](cond)
  ── Error ('test_node_rsurv.r:76:3'): just as one column ────────────────────────
  Error: An error occured when processing node 'Y'. The message was:
  Error in loadNamespace(name): there is no package called 'rsurv'
  
  Backtrace:
      ▆
   1. └─simDAG::sim_from_dag(dag, n_sim = 100) at test_node_rsurv.r:76:3
   2.   └─base::tryCatch(...)
   3.     └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   4.       └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   5.         └─value[[3L]](cond)
  ── Error ('test_node_rsurv.r:90:3'): with censoring ────────────────────────────
  Error: An error occured when processing node 'Y'. The message was:
  Error in loadNamespace(name): there is no package called 'rsurv'
  
  Backtrace:
      ▆
   1. └─simDAG::sim_from_dag(dag, n_sim = 100) at test_node_rsurv.r:90:3
   2.   └─base::tryCatch(...)
   3.     └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   4.       └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   5.         └─value[[3L]](cond)
  
  [ FAIL 7 | WARN 14 | SKIP 54 | PASS 883 ]
  Error:
  ! Test failures.
  Execution halted