Running ‘testthat.R’ [68s/85s]
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_node_lmer-21.R
  Saving _problems/test_node_lmer-52.R
  Saving _problems/test_node_lmer-85.R
  Saving _problems/test_node_lmer-116.R
  Saving _problems/test_node_lmer-148.R
  Saving _problems/test_node_lmer-178.R
  Saving _problems/test_node_lmer-208.R
  Saving _problems/test_node_lmer-239.R
  Saving _problems/test_node_lmer-272.R
  Saving _problems/test_node_lmer-393.R
  Saving _problems/test_node_zeroinfl-114.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=2272933 on localhost:11435 at 08:51:46.835
  starting worker pid=2272934 on localhost:11435 at 08:51:46.851
  
    |                                                                            
    |                                                                      |   0%Loading required package: simDAG
  loaded simDAG and set parent environment
  Loading required package: simDAG
  
  Attaching package: ‘data.table’
  
  The following object is masked from ‘package:base’:
  
      %notin%
  
  loaded simDAG and set parent environment
  Loading required package: foreach
  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
  
    |                                                                            
    |=======                                                               |  10%
    |                                                                            
    |==============                                                        |  20%
    |                                                                            
    |=====================                                                 |  30%
    |                                                                            
    |============================                                          |  40%
    |                                                                            
    |===================================                                   |  50%
    |                                                                            
    |==========================================                            |  60%
    |                                                                            
    |=================================================                     |  70%
    |                                                                            
    |========================================================              |  80%
    |                                                                            
    |===============================================================       |  90%
    |                                                                            
    |======================================================================| 100%starting worker pid=2273861 on localhost:11435 at 08:51:49.213
  starting worker pid=2273860 on localhost:11435 at 08:51:49.225
  Loading required package: simDAG
  loaded simDAG and set parent environment
  Loading required package: simDAG
  
  Attaching package: ‘data.table’
  
  The following object is masked from ‘package:base’:
  
      %notin%
  
  loaded simDAG and set parent environment
  Loading required package: foreach
  
  Attaching package: ‘data.table’
  
  Loading required package: rngtools
  The following object is masked from ‘package:base’:
  
      %notin%
  
  Loading required package: foreach
  Loading required package: rngtools
  starting worker pid=2274882 on localhost:11435 at 08:51:52.283
  starting worker pid=2274883 on localhost:11435 at 08:51:52.298
  Loading required package: simDAG
  loaded simDAG and set parent environment
  Loading required package: simDAG
  
  Attaching package: ‘data.table’
  
  loaded simDAG and set parent environment
  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
  starting worker pid=2275781 on localhost:11435 at 08:51:55.734
  starting worker pid=2275782 on localhost:11435 at 08:51:55.745
  
    |                                                                            
    |                                                                      |   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’
  
  
  Attaching package: ‘data.table’
  
  The following object is masked from ‘package:base’:
  
      %notin%
  
  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
  
    |                                                                            
    |=======                                                               |  10%
    |                                                                            
    |==============                                                        |  20%
    |                                                                            
    |=====================                                                 |  30%
    |                                                                            
    |============================                                          |  40%
    |                                                                            
    |===================================                                   |  50%
    |                                                                            
    |==========================================                            |  60%
    |                                                                            
    |=================================================                     |  70%
    |                                                                            
    |========================================================              |  80%
    |                                                                            
    |===============================================================       |  90%
    |                                                                            
    |======================================================================| 100%starting worker pid=2276756 on localhost:11435 at 08:51:58.994
  starting worker pid=2276755 on localhost:11435 at 08:51:59.001
  
    |                                                                            
    |                                                                      |   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’
  
  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%starting worker pid=2277203 on localhost:11435 at 08:52:01.497
  starting worker pid=2277205 on localhost:11435 at 08:52:01.502
  
    |                                                                            
    |                                                                      |   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%[ FAIL 11 | WARN 14 | SKIP 56 | PASS 1032 ]
  
  ══ Skipped tests (56) ══════════════════════════════════════════════════════════
  • On CRAN (56): '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_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_node_lmer.r:21:3'): simple random effect ───────────────────────
  Error: An error occured when processing node 'Y'. The message was:
  Error in mkMerMod(rho, opt, glmod$reTrms, fr = glmod$fr, mc = mcout, lme4conv = cc): unexpected parameter vector length: length(pars)=1, npar=1, nAGQ=1; (expected length(pars)==npar iff nAGQ==0)
  
  Backtrace:
      ▆
   1. └─simDAG::sim_from_dag(dag_bin, n_sim = 100) at test_node_lmer.r:21: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_lmer.r:52:3'): simple random effect in disrete-time simulation ──
  Error: An error occured when processing node 'Y' at time t = 1. The message was:
  Error in mkMerMod(rho, opt, glmod$reTrms, fr = glmod$fr, mc = mcout, lme4conv = cc): unexpected parameter vector length: length(pars)=1, npar=1, nAGQ=1; (expected length(pars)==npar iff nAGQ==0)
  
  Backtrace:
      ▆
   1. └─simDAG::sim_discrete_time(...) at test_node_lmer.r:52: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_lmer.r:85:3'): simple random effect + categorical fixed effect ──
  Error: An error occured when processing node 'Y'. The message was:
  Error in mkMerMod(rho, opt, glmod$reTrms, fr = glmod$fr, mc = mcout, lme4conv = cc): unexpected parameter vector length: length(pars)=1, npar=1, nAGQ=1; (expected length(pars)==npar iff nAGQ==0)
  
  Backtrace:
      ▆
   1. └─simDAG::sim_from_dag(dag_bin, n_sim = 100) at test_node_lmer.r:85: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_lmer.r:116:3'): simple random effect + interaction effect ──
  Error: An error occured when processing node 'Y'. The message was:
  Error in mkMerMod(rho, opt, glmod$reTrms, fr = glmod$fr, mc = mcout, lme4conv = cc): unexpected parameter vector length: length(pars)=1, npar=1, nAGQ=1; (expected length(pars)==npar iff nAGQ==0)
  
  Backtrace:
      ▆
   1. └─simDAG::sim_from_dag(dag_bin, n_sim = 100) at test_node_lmer.r:116: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_lmer.r:148:3'): simple random effect + interaction effect of categorical vars ──
  Error: An error occured when processing node 'Y'. The message was:
  Error in mkMerMod(rho, opt, glmod$reTrms, fr = glmod$fr, mc = mcout, lme4conv = cc): unexpected parameter vector length: length(pars)=1, npar=1, nAGQ=1; (expected length(pars)==npar iff nAGQ==0)
  
  Backtrace:
      ▆
   1. └─simDAG::sim_from_dag(dag_bin, n_sim = 100) at test_node_lmer.r:148: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_lmer.r:178:3'): simple random effect + cubic terms ────────
  Error: An error occured when processing node 'Y'. The message was:
  Error in mkMerMod(rho, opt, glmod$reTrms, fr = glmod$fr, mc = mcout, lme4conv = cc): unexpected parameter vector length: length(pars)=1, npar=1, nAGQ=1; (expected length(pars)==npar iff nAGQ==0)
  
  Backtrace:
      ▆
   1. └─simDAG::sim_from_dag(dag_bin, n_sim = 100) at test_node_lmer.r:178: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_lmer.r:208:3'): simple random effect + ONLY cubic terms ───
  Error: An error occured when processing node 'Y'. The message was:
  Error in mkMerMod(rho, opt, glmod$reTrms, fr = glmod$fr, mc = mcout, lme4conv = cc): unexpected parameter vector length: length(pars)=1, npar=1, nAGQ=1; (expected length(pars)==npar iff nAGQ==0)
  
  Backtrace:
      ▆
   1. └─simDAG::sim_from_dag(dag_bin, n_sim = 100) at test_node_lmer.r:208: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_lmer.r:239:3'): multiple random effects ───────────────────
  Error: An error occured when processing node 'Y'. The message was:
  Error in mkMerMod(rho, opt, glmod$reTrms, fr = glmod$fr, mc = mcout, lme4conv = cc): unexpected parameter vector length: length(pars)=2, npar=2, nAGQ=1; (expected length(pars)==npar iff nAGQ==0)
  
  Backtrace:
      ▆
   1. └─simDAG::sim_from_dag(dag_bin, n_sim = 100) at test_node_lmer.r:239: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_lmer.r:272:3'): with random effects and random slopes ─────
  Error: An error occured when processing node 'Y'. The message was:
  Error in mkMerMod(rho, opt, glmod$reTrms, fr = glmod$fr, mc = mcout, lme4conv = cc): unexpected parameter vector length: length(pars)=3, npar=3, nAGQ=1; (expected length(pars)==npar iff nAGQ==0)
  
  Backtrace:
      ▆
   1. └─simDAG::sim_from_dag(dag_bin, n_sim = 100) at test_node_lmer.r:272: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_lmer.r:393:3'): simple random effect with non-default link ──
  Error: An error occured when processing node 'Y'. The message was:
  Error in mkMerMod(rho, opt, glmod$reTrms, fr = glmod$fr, mc = mcout, lme4conv = cc): unexpected parameter vector length: length(pars)=1, npar=1, nAGQ=1; (expected length(pars)==npar iff nAGQ==0)
  
  Backtrace:
      ▆
   1. └─simDAG::sim_from_dag(dag_bin, n_sim = 100) at test_node_lmer.r:393: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_zeroinfl.r:114:3'): with random effects ───────────────────
  Error: An error occured when processing node 'Y'. The message was:
  Error in mkMerMod(rho, opt, glmod$reTrms, fr = glmod$fr, mc = mcout, lme4conv = cc): unexpected parameter vector length: length(pars)=1, npar=1, nAGQ=1; (expected length(pars)==npar iff nAGQ==0)
  
  Backtrace:
      ▆
   1. └─simDAG::sim_from_dag(dag, n_sim = 100) at test_node_zeroinfl.r:114: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 11 | WARN 14 | SKIP 56 | PASS 1032 ]
  Error:
  ! Test failures.
  Execution halted