Last updated on 2026-07-19 13:49:09 CEST.
| Flavor | Version | Tinstall | Tcheck | Ttotal | Status | Flags |
|---|---|---|---|---|---|---|
| r-devel-linux-x86_64-debian-clang | 1.0.0 | 14.11 | 387.09 | 401.20 | OK | |
| r-devel-linux-x86_64-debian-gcc | 1.0.0 | 10.06 | 239.69 | 249.75 | ERROR | |
| r-devel-linux-x86_64-fedora-clang | 1.0.0 | 24.00 | 546.64 | 570.64 | OK | |
| r-devel-linux-x86_64-fedora-gcc | 1.0.0 | 250.14 | OK | |||
| r-devel-windows-x86_64 | 1.0.0 | 16.00 | 325.00 | 341.00 | ERROR | |
| r-patched-linux-x86_64 | 1.0.0 | 16.49 | 351.52 | 368.01 | OK | |
| r-release-linux-x86_64 | 1.0.0 | 13.81 | 335.14 | 348.95 | ERROR | |
| r-release-macos-arm64 | 1.0.0 | 3.00 | 85.00 | 88.00 | OK | |
| r-release-macos-x86_64 | 1.0.0 | 10.00 | 313.00 | 323.00 | OK | |
| r-release-windows-x86_64 | 1.0.0 | 15.00 | 314.00 | 329.00 | ERROR | |
| r-oldrel-macos-arm64 | 1.0.0 | 3.00 | 87.00 | 90.00 | OK | |
| r-oldrel-macos-x86_64 | 1.0.0 | 10.00 | 310.00 | 320.00 | OK | |
| r-oldrel-windows-x86_64 | 1.0.0 | 21.00 | 468.00 | 489.00 | OK |
Version: 1.0.0
Check: examples
Result: ERROR
Running examples in ‘simDAG-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: node_binomial
> ### Title: Generate Data from a (Mixed) Binomial Regression Model
> ### Aliases: node_binomial
>
> ### ** Examples
>
> library(simDAG)
>
> set.seed(5425)
>
> # define needed DAG
> dag <- empty_dag() +
+ node("age", type="rnorm", mean=50, sd=4) +
+ node("sex", type="rbernoulli", p=0.5) +
+ node("smoking", type="binomial", parents=c("age", "sex"),
+ betas=c(1.1, 0.4), intercept=-2)
>
> # define the same DAG, but using a pretty formula
> dag <- empty_dag() +
+ node("age", type="rnorm", mean=50, sd=4) +
+ node("sex", type="rbernoulli", p=0.5) +
+ node("smoking", type="binomial",
+ formula= ~ -2 + age*1.1 + sexTRUE*0.4)
>
> # simulate data from it
> sim_dat <- sim_from_dag(dag=dag, n_sim=100)
>
> # returning only the estimated probability instead
> dag <- empty_dag() +
+ node("age", type="rnorm", mean=50, sd=4) +
+ node("sex", type="rbernoulli", p=0.5) +
+ node("smoking", type="binomial", parents=c("age", "sex"),
+ betas=c(1.1, 0.4), intercept=-2, return_prob=TRUE)
>
> sim_dat <- sim_from_dag(dag=dag, n_sim=100)
>
> ## an example using a random effect
> if (requireNamespace("simr")) {
+
+ library(simr)
+
+ dag_mixed <- empty_dag() +
+ node("School", type="rcategorical", probs=rep(0.1, 10),
+ labels=LETTERS[1:10]) +
+ node("Age", type="rnorm", mean=12, sd=2) +
+ node("Grade", type="binomial", formula= ~ -10 + Age*1.2 + (1|School),
+ var_corr=0.3)
+
+ sim_dat <- sim_from_dag(dag=dag_mixed, n_sim=100)
+ }
Loading required namespace: simr
Loading required package: lme4
Loading required package: Matrix
Attaching package: ‘simr’
The following object is masked from ‘package:lme4’:
getData
Error: An error occured when processing node 'Grade'. 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)
Execution halted
Flavors: r-devel-linux-x86_64-debian-gcc, r-release-linux-x86_64
Version: 1.0.0
Check: tests
Result: ERROR
Running ‘testthat.R’ [71s/108s]
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=2307328 on localhost:11260 at 19:51:06.033
starting worker pid=2307326 on localhost:11260 at 19:51:06.172
|
| | 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%
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
|
|======= | 10%
|
|============== | 20%
|
|===================== | 30%
|
|============================ | 40%
|
|=================================== | 50%
|
|========================================== | 60%
|
|================================================= | 70%
|
|======================================================== | 80%
|
|=============================================================== | 90%
|
|======================================================================| 100%starting worker pid=2323952 on localhost:11260 at 19:51:08.988
starting worker pid=2323959 on localhost:11260 at 19:51:08.992
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’
The following object is masked from ‘package:base’:
%notin%
Loading required package: rngtools
Loading required package: foreach
Loading required package: rngtools
starting worker pid=2342185 on localhost:11260 at 19:51:13.608
starting worker pid=2342184 on localhost:11260 at 19:51:13.733
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
starting worker pid=2369546 on localhost:11260 at 19:51:19.460
starting worker pid=2369547 on localhost:11260 at 19:51:19.526
|
| | 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%
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=2388937 on localhost:11260 at 19:51:23.950
starting worker pid=2388938 on localhost:11260 at 19:51:23.997
|
| | 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=2401749 on localhost:11260 at 19:51:27.933
starting worker pid=2401748 on localhost:11260 at 19:51:27.958
|
| | 0%Loading required package: simDAG
Loading required package: simDAG
loaded simDAG and set parent environment
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: foreach
Loading required package: rngtools
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
Flavor: r-devel-linux-x86_64-debian-gcc
Version: 1.0.0
Check: re-building of vignette outputs
Result: ERROR
Error(s) in re-building vignettes:
...
--- re-building ‘simDAG.Rmd’ using rmarkdown
--- finished re-building ‘simDAG.Rmd’
--- re-building ‘v_cookbook.Rmd’ using rmarkdown
Quitting from v_cookbook.Rmd:132-140 [unnamed-chunk-7]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error:
! An error occured when processing node 'Outcome'. 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 = 1000)
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: processing vignette 'v_cookbook.Rmd' failed with diagnostics:
An error occured when processing node 'Outcome'. 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)
--- failed re-building ‘v_cookbook.Rmd’
--- re-building ‘v_covid_example.Rmd’ using rmarkdown
--- finished re-building ‘v_covid_example.Rmd’
--- re-building ‘v_custom_nodes.Rmd’ using rmarkdown
--- finished re-building ‘v_custom_nodes.Rmd’
--- re-building ‘v_sim_discrete_event.Rmd’ using rmarkdown
--- finished re-building ‘v_sim_discrete_event.Rmd’
--- re-building ‘v_sim_discrete_time.Rmd’ using rmarkdown
--- finished re-building ‘v_sim_discrete_time.Rmd’
--- re-building ‘v_sim_from_dag.Rmd’ using rmarkdown
--- finished re-building ‘v_sim_from_dag.Rmd’
--- re-building ‘v_sim_networks.Rmd’ using rmarkdown
--- finished re-building ‘v_sim_networks.Rmd’
--- re-building ‘v_using_formulas.Rmd’ using rmarkdown
--- finished re-building ‘v_using_formulas.Rmd’
SUMMARY: processing the following file failed:
‘v_cookbook.Rmd’
Error: Vignette re-building failed.
Execution halted
Flavors: r-devel-linux-x86_64-debian-gcc, r-release-linux-x86_64
Version: 1.0.0
Check: examples
Result: ERROR
Running examples in 'simDAG-Ex.R' failed
The error most likely occurred in:
> ### Name: node_binomial
> ### Title: Generate Data from a (Mixed) Binomial Regression Model
> ### Aliases: node_binomial
>
> ### ** Examples
>
> library(simDAG)
>
> set.seed(5425)
>
> # define needed DAG
> dag <- empty_dag() +
+ node("age", type="rnorm", mean=50, sd=4) +
+ node("sex", type="rbernoulli", p=0.5) +
+ node("smoking", type="binomial", parents=c("age", "sex"),
+ betas=c(1.1, 0.4), intercept=-2)
>
> # define the same DAG, but using a pretty formula
> dag <- empty_dag() +
+ node("age", type="rnorm", mean=50, sd=4) +
+ node("sex", type="rbernoulli", p=0.5) +
+ node("smoking", type="binomial",
+ formula= ~ -2 + age*1.1 + sexTRUE*0.4)
>
> # simulate data from it
> sim_dat <- sim_from_dag(dag=dag, n_sim=100)
>
> # returning only the estimated probability instead
> dag <- empty_dag() +
+ node("age", type="rnorm", mean=50, sd=4) +
+ node("sex", type="rbernoulli", p=0.5) +
+ node("smoking", type="binomial", parents=c("age", "sex"),
+ betas=c(1.1, 0.4), intercept=-2, return_prob=TRUE)
>
> sim_dat <- sim_from_dag(dag=dag, n_sim=100)
>
> ## an example using a random effect
> if (requireNamespace("simr")) {
+
+ library(simr)
+
+ dag_mixed <- empty_dag() +
+ node("School", type="rcategorical", probs=rep(0.1, 10),
+ labels=LETTERS[1:10]) +
+ node("Age", type="rnorm", mean=12, sd=2) +
+ node("Grade", type="binomial", formula= ~ -10 + Age*1.2 + (1|School),
+ var_corr=0.3)
+
+ sim_dat <- sim_from_dag(dag=dag_mixed, n_sim=100)
+ }
Loading required namespace: simr
Loading required package: lme4
Loading required package: Matrix
Attaching package: 'simr'
The following object is masked from 'package:lme4':
getData
Error: An error occured when processing node 'Grade'. 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)
Execution halted
Flavors: r-devel-windows-x86_64, r-release-windows-x86_64
Version: 1.0.0
Check: tests
Result: ERROR
Running 'testthat.R' [111s]
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=31128 on localhost:11756 at 22:48:41.165
starting worker pid=24988 on localhost:11756 at 22:48:41.216
|
| | 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
|
|======= | 10%
|
|============== | 20%
|
|===================== | 30%
|
|============================ | 40%
|
|=================================== | 50%
|
|========================================== | 60%
|
|================================================= | 70%
|
|======================================================== | 80%
|
|=============================================================== | 90%
|
|======================================================================| 100%starting worker pid=40636 on localhost:11756 at 22:48:43.849
starting worker pid=4488 on localhost:11756 at 22:48:43.855
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
starting worker pid=47508 on localhost:11756 at 22:48:47.337
starting worker pid=63916 on localhost:11756 at 22:48:47.359
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
starting worker pid=7904 on localhost:11756 at 22:48:51.098
starting worker pid=65980 on localhost:11756 at 22:48:51.099
|
| | 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
|
|======= | 10%
|
|============== | 20%
|
|===================== | 30%
|
|============================ | 40%
|
|=================================== | 50%
|
|========================================== | 60%
|
|================================================= | 70%
|
|======================================================== | 80%
|
|=============================================================== | 90%
|
|======================================================================| 100%starting worker pid=94276 on localhost:11756 at 22:48:54.217
starting worker pid=45504 on localhost:11756 at 22:48:54.235
|
| | 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=38864 on localhost:11756 at 22:48:57.076
starting worker pid=82056 on localhost:11756 at 22:48:57.102
|
| | 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
Flavor: r-devel-windows-x86_64
Version: 1.0.0
Check: re-building of vignette outputs
Result: ERROR
Error(s) in re-building vignettes:
--- re-building 'simDAG.Rmd' using rmarkdown
--- finished re-building 'simDAG.Rmd'
--- re-building 'v_cookbook.Rmd' using rmarkdown
Quitting from v_cookbook.Rmd:132-140 [unnamed-chunk-7]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error:
! An error occured when processing node 'Outcome'. 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 = 1000)
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: processing vignette 'v_cookbook.Rmd' failed with diagnostics:
An error occured when processing node 'Outcome'. 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)
--- failed re-building 'v_cookbook.Rmd'
--- re-building 'v_covid_example.Rmd' using rmarkdown
--- finished re-building 'v_covid_example.Rmd'
--- re-building 'v_custom_nodes.Rmd' using rmarkdown
--- finished re-building 'v_custom_nodes.Rmd'
--- re-building 'v_sim_discrete_event.Rmd' using rmarkdown
--- finished re-building 'v_sim_discrete_event.Rmd'
--- re-building 'v_sim_discrete_time.Rmd' using rmarkdown
--- finished re-building 'v_sim_discrete_time.Rmd'
--- re-building 'v_sim_from_dag.Rmd' using rmarkdown
--- finished re-building 'v_sim_from_dag.Rmd'
--- re-building 'v_sim_networks.Rmd' using rmarkdown
--- finished re-building 'v_sim_networks.Rmd'
--- re-building 'v_using_formulas.Rmd' using rmarkdown
--- finished re-building 'v_using_formulas.Rmd'
SUMMARY: processing the following file failed:
'v_cookbook.Rmd'
Error: Vignette re-building failed.
Execution halted
Flavors: r-devel-windows-x86_64, r-release-windows-x86_64
Version: 1.0.0
Check: tests
Result: ERROR
Running ‘testthat.R’ [107s/158s]
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=2450056 on localhost:11849 at 22:04:38.306
starting worker pid=2450055 on localhost:11849 at 22:04:38.335
|
| | 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
|
|======= | 10%
|
|============== | 20%
|
|===================== | 30%
|
|============================ | 40%
|
|=================================== | 50%
|
|========================================== | 60%
|
|================================================= | 70%
|
|======================================================== | 80%
|
|=============================================================== | 90%
|
|======================================================================| 100%starting worker pid=2451286 on localhost:11849 at 22:04:42.278
starting worker pid=2451285 on localhost:11849 at 22:04:42.286
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
starting worker pid=2453120 on localhost:11849 at 22:04:48.126
starting worker pid=2453121 on localhost:11849 at 22:04:48.151
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’
Loading required package: rngtools
The following object is masked from ‘package:base’:
%notin%
Loading required package: foreach
Loading required package: rngtools
starting worker pid=2454901 on localhost:11849 at 22:04:54.093
starting worker pid=2454902 on localhost:11849 at 22:04:54.174
|
| | 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%
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=2456514 on localhost:11849 at 22:04:58.754
starting worker pid=2456515 on localhost:11849 at 22:04:58.809
|
| | 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%starting worker pid=2458001 on localhost:11849 at 22:05:03.263
starting worker pid=2458002 on localhost:11849 at 22:05:03.324
|
| | 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
Flavor: r-release-linux-x86_64
Version: 1.0.0
Check: tests
Result: ERROR
Running 'testthat.R' [110s]
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=62768 on localhost:11015 at 12:49:58.961
starting worker pid=66340 on localhost:11015 at 12:49:58.986
|
| | 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
|
|======= | 10%
|
|============== | 20%
|
|===================== | 30%
|
|============================ | 40%
|
|=================================== | 50%
|
|========================================== | 60%
|
|================================================= | 70%
|
|======================================================== | 80%
|
|=============================================================== | 90%
|
|======================================================================| 100%starting worker pid=11900 on localhost:11015 at 12:50:01.580
starting worker pid=93312 on localhost:11015 at 12:50:01.603
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
starting worker pid=39412 on localhost:11015 at 12:50:05.132
starting worker pid=105328 on localhost:11015 at 12:50:05.150
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
starting worker pid=90456 on localhost:11015 at 12:50:08.790
starting worker pid=3016 on localhost:11015 at 12:50:08.816
|
| | 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
|
|======= | 10%
|
|============== | 20%
|
|===================== | 30%
|
|============================ | 40%
|
|=================================== | 50%
|
|========================================== | 60%
|
|================================================= | 70%
|
|======================================================== | 80%
|
|=============================================================== | 90%
|
|======================================================================| 100%starting worker pid=48460 on localhost:11015 at 12:50:12.086
starting worker pid=34636 on localhost:11015 at 12:50:12.105
|
| | 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=107708 on localhost:11015 at 12:50:14.930
starting worker pid=35124 on localhost:11015 at 12:50:14.945
|
| | 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
Flavor: r-release-windows-x86_64