Last updated on 2026-11-12 12:57:29 CET.
| Flavor | Version | Tinstall | Tcheck | Ttotal | Status | Flags |
|---|---|---|---|---|---|---|
| r-devel-linux-x86_64-debian-clang | 0.1.10 | 6.26 | 85.53 | 91.79 | ERROR | |
| r-devel-linux-x86_64-debian-gcc | 0.1.10 | 4.15 | 63.23 | 67.38 | ERROR | |
| r-devel-linux-x86_64-fedora-clang | 0.1.10 | 62.01 | ERROR | |||
| r-devel-linux-x86_64-fedora-gcc | 0.1.10 | 59.92 | ERROR | |||
| r-devel-windows-x86_64 | 0.1.10 | 10.00 | 122.00 | 132.00 | ERROR | |
| r-patched-linux-x86_64 | 0.1.10 | 4.78 | 80.36 | 85.14 | ERROR | |
| r-release-linux-x86_64 | 0.1.10 | 5.84 | 79.42 | 85.26 | ERROR | |
| r-release-macos-arm64 | 0.1.10 | 3.00 | 24.00 | 27.00 | OK | |
| r-release-macos-x86_64 | 0.1.10 | 7.00 | 105.00 | 112.00 | OK | |
| r-release-windows-x86_64 | 0.1.10 | 10.00 | 102.00 | 112.00 | ERROR | |
| r-oldrel-macos-arm64 | 0.1.10 | OK | ||||
| r-oldrel-macos-x86_64 | 0.1.10 | 7.00 | 104.00 | 111.00 | OK | |
| r-oldrel-windows-x86_64 | 0.1.10 | 14.00 | 109.00 | 123.00 | ERROR |
Version: 0.1.10
Check: examples
Result: ERROR
Running examples in ‘DesignLibrary-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: binary_iv_designer
> ### Title: Create a binary instrumental variables design
> ### Aliases: binary_iv_designer simple_iv_designer
>
> ### ** Examples
>
> # Generate a simple iv design: iv identifies late not ate
> binary_iv_design_1 <- binary_iv_designer(N = 1000, b = c(.1, .2, .3, .4))
Warning: `declare_population()` is deprecated. Use `declare_model()` instead.
This warning is displayed once per session.
Error in `declare_potential_outcomes()`:
! `declare_potential_outcomes()` is not a step in DeclareDesign 2.0.
ℹ Put potential outcomes in the model, as a formula:
• declare_model(N = 100, potential_outcomes(Y ~ 0.2 * Z + U))
ℹ Named potential outcomes are ordinary model variables:
• declare_model(Y_Z_0 = U, Y_Z_1 = U + 0.2)
Backtrace:
▆
1. └─DesignLibrary::binary_iv_designer(...)
2. └─DeclareDesign::declare_potential_outcomes(Y ~ a[type] + b[type] * X + d[type] * Z + u_Y, assignment_variables = "X")
3. └─rlang::abort(...)
Execution halted
Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-patched-linux-x86_64, r-release-linux-x86_64
Version: 0.1.10
Check: tests
Result: ERROR
Running ‘testthat.R’ [3s/3s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(DesignLibrary)
Loading required package: DeclareDesign
Loading required package: randomizr
Loading required package: fabricatr
Loading required package: estimatr
>
> test_check(package = "DesignLibrary")
Saving _problems/test_designers-17.R
Saving _problems/test_diagnose_designers-4.R
Saving _problems/test_fanout-6.R
Saving _problems/test_simulate_designers-4.R
[ FAIL 4 | WARN 1 | SKIP 0 | PASS 19 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test_designers.R:17:3'): (code run outside of `test_that()`) ────────
Error in `declare_potential_outcomes(Y ~ a[type] + b[type] * X + d[type] * Z + u_Y, assignment_variables = "X")`: `declare_potential_outcomes()` is not a step in DeclareDesign 2.0.
ℹ Put potential outcomes in the model, as a formula:
• declare_model(N = 100, potential_outcomes(Y ~ 0.2 * Z + U))
ℹ Named potential outcomes are ordinary model variables:
• declare_model(Y_Z_0 = U, Y_Z_1 = U + 0.2)
Backtrace:
▆
1. └─DesignLibrary (local) the_designer() at test_designers.R:17:3
2. └─DeclareDesign::declare_potential_outcomes(Y ~ a[type] + b[type] * X + d[type] * Z + u_Y, assignment_variables = "X")
3. └─rlang::abort(...)
── Error ('test_diagnose_designers.R:4:3'): with and without term ──────────────
Error in `declare_potential_outcomes(Y_A_0_B_0 = mean_A0B0 + u + rnorm(N, sd = outcome_sds[1]), Y_A_0_B_1 = mean_A0B1 + u + rnorm(N, sd = outcome_sds[2]), Y_A_1_B_0 = mean_A1B0 + u + rnorm(N, sd = outcome_sds[3]), Y_A_1_B_1 = mean_A1B1 + u + rnorm(N, sd = outcome_sds[4]))`: `declare_potential_outcomes()` is not a step in DeclareDesign 2.0.
ℹ Put potential outcomes in the model, as a formula:
• declare_model(N = 100, potential_outcomes(Y ~ 0.2 * Z + U))
ℹ Named potential outcomes are ordinary model variables:
• declare_model(Y_Z_0 = U, Y_Z_1 = U + 0.2)
Backtrace:
▆
1. └─DesignLibrary::two_by_two_designer(...) at test_diagnose_designers.R:4:3
2. └─DeclareDesign::declare_potential_outcomes(...)
3. └─rlang::abort(...)
── Error ('test_fanout.R:6:3'): fan out IDs are correct ────────────────────────
Error in `declare_potential_outcomes(Y ~ (1 - Z) * (u_0 * control_sd + control_mean) + Z * (u_1 * treatment_sd + treatment_mean))`: `declare_potential_outcomes()` is not a step in DeclareDesign 2.0.
ℹ Put potential outcomes in the model, as a formula:
• declare_model(N = 100, potential_outcomes(Y ~ 0.2 * Z + U))
ℹ Named potential outcomes are ordinary model variables:
• declare_model(Y_Z_0 = U, Y_Z_1 = U + 0.2)
Backtrace:
▆
1. └─DesignLibrary::two_arm_designer(rho = 0) at test_fanout.R:6:3
2. └─DeclareDesign::declare_potential_outcomes(...)
3. └─rlang::abort(...)
── Error ('test_simulate_designers.R:4:3'): MH sim ids ─────────────────────────
Error in `declare_potential_outcomes(Y ~ (1 - Z) * (u_0 * control_sd + control_mean) + Z * (u_1 * treatment_sd + treatment_mean))`: `declare_potential_outcomes()` is not a step in DeclareDesign 2.0.
ℹ Put potential outcomes in the model, as a formula:
• declare_model(N = 100, potential_outcomes(Y ~ 0.2 * Z + U))
ℹ Named potential outcomes are ordinary model variables:
• declare_model(Y_Z_0 = U, Y_Z_1 = U + 0.2)
Backtrace:
▆
1. └─DesignLibrary::two_arm_designer() at test_simulate_designers.R:4:3
2. └─DeclareDesign::declare_potential_outcomes(...)
3. └─rlang::abort(...)
[ FAIL 4 | WARN 1 | SKIP 0 | PASS 19 ]
Error:
! Test failures.
Execution halted
Flavor: r-devel-linux-x86_64-debian-clang
Version: 0.1.10
Check: tests
Result: ERROR
Running ‘testthat.R’ [2s/2s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(DesignLibrary)
Loading required package: DeclareDesign
Loading required package: randomizr
Loading required package: fabricatr
Loading required package: estimatr
>
> test_check(package = "DesignLibrary")
Saving _problems/test_designers-17.R
Saving _problems/test_diagnose_designers-4.R
Saving _problems/test_fanout-6.R
Saving _problems/test_simulate_designers-4.R
[ FAIL 4 | WARN 1 | SKIP 0 | PASS 19 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test_designers.R:17:3'): (code run outside of `test_that()`) ────────
Error in `declare_potential_outcomes(Y ~ a[type] + b[type] * X + d[type] * Z + u_Y, assignment_variables = "X")`: `declare_potential_outcomes()` is not a step in DeclareDesign 2.0.
ℹ Put potential outcomes in the model, as a formula:
• declare_model(N = 100, potential_outcomes(Y ~ 0.2 * Z + U))
ℹ Named potential outcomes are ordinary model variables:
• declare_model(Y_Z_0 = U, Y_Z_1 = U + 0.2)
Backtrace:
▆
1. └─DesignLibrary (local) the_designer() at test_designers.R:17:3
2. └─DeclareDesign::declare_potential_outcomes(Y ~ a[type] + b[type] * X + d[type] * Z + u_Y, assignment_variables = "X")
3. └─rlang::abort(...)
── Error ('test_diagnose_designers.R:4:3'): with and without term ──────────────
Error in `declare_potential_outcomes(Y_A_0_B_0 = mean_A0B0 + u + rnorm(N, sd = outcome_sds[1]), Y_A_0_B_1 = mean_A0B1 + u + rnorm(N, sd = outcome_sds[2]), Y_A_1_B_0 = mean_A1B0 + u + rnorm(N, sd = outcome_sds[3]), Y_A_1_B_1 = mean_A1B1 + u + rnorm(N, sd = outcome_sds[4]))`: `declare_potential_outcomes()` is not a step in DeclareDesign 2.0.
ℹ Put potential outcomes in the model, as a formula:
• declare_model(N = 100, potential_outcomes(Y ~ 0.2 * Z + U))
ℹ Named potential outcomes are ordinary model variables:
• declare_model(Y_Z_0 = U, Y_Z_1 = U + 0.2)
Backtrace:
▆
1. └─DesignLibrary::two_by_two_designer(...) at test_diagnose_designers.R:4:3
2. └─DeclareDesign::declare_potential_outcomes(...)
3. └─rlang::abort(...)
── Error ('test_fanout.R:6:3'): fan out IDs are correct ────────────────────────
Error in `declare_potential_outcomes(Y ~ (1 - Z) * (u_0 * control_sd + control_mean) + Z * (u_1 * treatment_sd + treatment_mean))`: `declare_potential_outcomes()` is not a step in DeclareDesign 2.0.
ℹ Put potential outcomes in the model, as a formula:
• declare_model(N = 100, potential_outcomes(Y ~ 0.2 * Z + U))
ℹ Named potential outcomes are ordinary model variables:
• declare_model(Y_Z_0 = U, Y_Z_1 = U + 0.2)
Backtrace:
▆
1. └─DesignLibrary::two_arm_designer(rho = 0) at test_fanout.R:6:3
2. └─DeclareDesign::declare_potential_outcomes(...)
3. └─rlang::abort(...)
── Error ('test_simulate_designers.R:4:3'): MH sim ids ─────────────────────────
Error in `declare_potential_outcomes(Y ~ (1 - Z) * (u_0 * control_sd + control_mean) + Z * (u_1 * treatment_sd + treatment_mean))`: `declare_potential_outcomes()` is not a step in DeclareDesign 2.0.
ℹ Put potential outcomes in the model, as a formula:
• declare_model(N = 100, potential_outcomes(Y ~ 0.2 * Z + U))
ℹ Named potential outcomes are ordinary model variables:
• declare_model(Y_Z_0 = U, Y_Z_1 = U + 0.2)
Backtrace:
▆
1. └─DesignLibrary::two_arm_designer() at test_simulate_designers.R:4:3
2. └─DeclareDesign::declare_potential_outcomes(...)
3. └─rlang::abort(...)
[ FAIL 4 | WARN 1 | SKIP 0 | PASS 19 ]
Error:
! Test failures.
Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc
Version: 0.1.10
Check: examples
Result: ERROR
Running examples in ‘DesignLibrary-Ex.R’ failed
The error most likely occurred in:
> ### Name: binary_iv_designer
> ### Title: Create a binary instrumental variables design
> ### Aliases: binary_iv_designer simple_iv_designer
>
> ### ** Examples
>
> # Generate a simple iv design: iv identifies late not ate
> binary_iv_design_1 <- binary_iv_designer(N = 1000, b = c(.1, .2, .3, .4))
Warning: `declare_population()` is deprecated. Use `declare_model()` instead.
This warning is displayed once per session.
Error in `declare_potential_outcomes()`:
! `declare_potential_outcomes()` is not a step in DeclareDesign 2.0.
ℹ Put potential outcomes in the model, as a formula:
• declare_model(N = 100, potential_outcomes(Y ~ 0.2 * Z + U))
ℹ Named potential outcomes are ordinary model variables:
• declare_model(Y_Z_0 = U, Y_Z_1 = U + 0.2)
Backtrace:
▆
1. └─DesignLibrary::binary_iv_designer(...)
2. └─DeclareDesign::declare_potential_outcomes(Y ~ a[type] + b[type] * X + d[type] * Z + u_Y, assignment_variables = "X")
3. └─rlang::abort(...)
Execution halted
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-x86_64, r-release-windows-x86_64, r-oldrel-windows-x86_64
Version: 0.1.10
Check: tests
Result: ERROR
Running ‘testthat.R’
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(DesignLibrary)
Loading required package: DeclareDesign
Loading required package: randomizr
Loading required package: fabricatr
Loading required package: estimatr
>
> test_check(package = "DesignLibrary")
Saving _problems/test_designers-17.R
Saving _problems/test_diagnose_designers-4.R
Saving _problems/test_fanout-6.R
Saving _problems/test_simulate_designers-4.R
[ FAIL 4 | WARN 1 | SKIP 0 | PASS 19 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test_designers.R:17:3'): (code run outside of `test_that()`) ────────
Error in `declare_potential_outcomes(Y ~ a[type] + b[type] * X + d[type] * Z + u_Y, assignment_variables = "X")`: `declare_potential_outcomes()` is not a step in DeclareDesign 2.0.
ℹ Put potential outcomes in the model, as a formula:
• declare_model(N = 100, potential_outcomes(Y ~ 0.2 * Z + U))
ℹ Named potential outcomes are ordinary model variables:
• declare_model(Y_Z_0 = U, Y_Z_1 = U + 0.2)
Backtrace:
▆
1. └─DesignLibrary (local) the_designer() at test_designers.R:17:3
2. └─DeclareDesign::declare_potential_outcomes(Y ~ a[type] + b[type] * X + d[type] * Z + u_Y, assignment_variables = "X")
3. └─rlang::abort(...)
── Error ('test_diagnose_designers.R:4:3'): with and without term ──────────────
Error in `declare_potential_outcomes(Y_A_0_B_0 = mean_A0B0 + u + rnorm(N, sd = outcome_sds[1]), Y_A_0_B_1 = mean_A0B1 + u + rnorm(N, sd = outcome_sds[2]), Y_A_1_B_0 = mean_A1B0 + u + rnorm(N, sd = outcome_sds[3]), Y_A_1_B_1 = mean_A1B1 + u + rnorm(N, sd = outcome_sds[4]))`: `declare_potential_outcomes()` is not a step in DeclareDesign 2.0.
ℹ Put potential outcomes in the model, as a formula:
• declare_model(N = 100, potential_outcomes(Y ~ 0.2 * Z + U))
ℹ Named potential outcomes are ordinary model variables:
• declare_model(Y_Z_0 = U, Y_Z_1 = U + 0.2)
Backtrace:
▆
1. └─DesignLibrary::two_by_two_designer(...) at test_diagnose_designers.R:4:3
2. └─DeclareDesign::declare_potential_outcomes(...)
3. └─rlang::abort(...)
── Error ('test_fanout.R:6:3'): fan out IDs are correct ────────────────────────
Error in `declare_potential_outcomes(Y ~ (1 - Z) * (u_0 * control_sd + control_mean) + Z * (u_1 * treatment_sd + treatment_mean))`: `declare_potential_outcomes()` is not a step in DeclareDesign 2.0.
ℹ Put potential outcomes in the model, as a formula:
• declare_model(N = 100, potential_outcomes(Y ~ 0.2 * Z + U))
ℹ Named potential outcomes are ordinary model variables:
• declare_model(Y_Z_0 = U, Y_Z_1 = U + 0.2)
Backtrace:
▆
1. └─DesignLibrary::two_arm_designer(rho = 0) at test_fanout.R:6:3
2. └─DeclareDesign::declare_potential_outcomes(...)
3. └─rlang::abort(...)
── Error ('test_simulate_designers.R:4:3'): MH sim ids ─────────────────────────
Error in `declare_potential_outcomes(Y ~ (1 - Z) * (u_0 * control_sd + control_mean) + Z * (u_1 * treatment_sd + treatment_mean))`: `declare_potential_outcomes()` is not a step in DeclareDesign 2.0.
ℹ Put potential outcomes in the model, as a formula:
• declare_model(N = 100, potential_outcomes(Y ~ 0.2 * Z + U))
ℹ Named potential outcomes are ordinary model variables:
• declare_model(Y_Z_0 = U, Y_Z_1 = U + 0.2)
Backtrace:
▆
1. └─DesignLibrary::two_arm_designer() at test_simulate_designers.R:4:3
2. └─DeclareDesign::declare_potential_outcomes(...)
3. └─rlang::abort(...)
[ FAIL 4 | WARN 1 | SKIP 0 | PASS 19 ]
Error:
! Test failures.
Execution halted
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc
Version: 0.1.10
Check: tests
Result: ERROR
Running 'testthat.R' [3s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
> library(testthat)
> library(DesignLibrary)
Loading required package: DeclareDesign
Loading required package: randomizr
Loading required package: fabricatr
Loading required package: estimatr
>
> test_check(package = "DesignLibrary")
Saving _problems/test_designers-17.R
Saving _problems/test_diagnose_designers-4.R
Saving _problems/test_fanout-6.R
Saving _problems/test_simulate_designers-4.R
[ FAIL 4 | WARN 1 | SKIP 0 | PASS 19 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test_designers.R:17:3'): (code run outside of `test_that()`) ────────
Error in `declare_potential_outcomes(Y ~ a[type] + b[type] * X + d[type] * Z + u_Y, assignment_variables = "X")`: `declare_potential_outcomes()` is not a step in DeclareDesign 2.0.
ℹ Put potential outcomes in the model, as a formula:
• declare_model(N = 100, potential_outcomes(Y ~ 0.2 * Z + U))
ℹ Named potential outcomes are ordinary model variables:
• declare_model(Y_Z_0 = U, Y_Z_1 = U + 0.2)
Backtrace:
▆
1. └─DesignLibrary (local) the_designer() at test_designers.R:17:3
2. └─DeclareDesign::declare_potential_outcomes(Y ~ a[type] + b[type] * X + d[type] * Z + u_Y, assignment_variables = "X")
3. └─rlang::abort(...)
── Error ('test_diagnose_designers.R:4:3'): with and without term ──────────────
Error in `declare_potential_outcomes(Y_A_0_B_0 = mean_A0B0 + u + rnorm(N, sd = outcome_sds[1]), Y_A_0_B_1 = mean_A0B1 + u + rnorm(N, sd = outcome_sds[2]), Y_A_1_B_0 = mean_A1B0 + u + rnorm(N, sd = outcome_sds[3]), Y_A_1_B_1 = mean_A1B1 + u + rnorm(N, sd = outcome_sds[4]))`: `declare_potential_outcomes()` is not a step in DeclareDesign 2.0.
ℹ Put potential outcomes in the model, as a formula:
• declare_model(N = 100, potential_outcomes(Y ~ 0.2 * Z + U))
ℹ Named potential outcomes are ordinary model variables:
• declare_model(Y_Z_0 = U, Y_Z_1 = U + 0.2)
Backtrace:
▆
1. └─DesignLibrary::two_by_two_designer(...) at test_diagnose_designers.R:4:3
2. └─DeclareDesign::declare_potential_outcomes(...)
3. └─rlang::abort(...)
── Error ('test_fanout.R:6:3'): fan out IDs are correct ────────────────────────
Error in `declare_potential_outcomes(Y ~ (1 - Z) * (u_0 * control_sd + control_mean) + Z * (u_1 * treatment_sd + treatment_mean))`: `declare_potential_outcomes()` is not a step in DeclareDesign 2.0.
ℹ Put potential outcomes in the model, as a formula:
• declare_model(N = 100, potential_outcomes(Y ~ 0.2 * Z + U))
ℹ Named potential outcomes are ordinary model variables:
• declare_model(Y_Z_0 = U, Y_Z_1 = U + 0.2)
Backtrace:
▆
1. └─DesignLibrary::two_arm_designer(rho = 0) at test_fanout.R:6:3
2. └─DeclareDesign::declare_potential_outcomes(...)
3. └─rlang::abort(...)
── Error ('test_simulate_designers.R:4:3'): MH sim ids ─────────────────────────
Error in `declare_potential_outcomes(Y ~ (1 - Z) * (u_0 * control_sd + control_mean) + Z * (u_1 * treatment_sd + treatment_mean))`: `declare_potential_outcomes()` is not a step in DeclareDesign 2.0.
ℹ Put potential outcomes in the model, as a formula:
• declare_model(N = 100, potential_outcomes(Y ~ 0.2 * Z + U))
ℹ Named potential outcomes are ordinary model variables:
• declare_model(Y_Z_0 = U, Y_Z_1 = U + 0.2)
Backtrace:
▆
1. └─DesignLibrary::two_arm_designer() at test_simulate_designers.R:4:3
2. └─DeclareDesign::declare_potential_outcomes(...)
3. └─rlang::abort(...)
[ FAIL 4 | WARN 1 | SKIP 0 | PASS 19 ]
Error:
! Test failures.
Execution halted
Flavors: r-devel-windows-x86_64, r-oldrel-windows-x86_64
Version: 0.1.10
Check: tests
Result: ERROR
Running ‘testthat.R’ [2s/3s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(DesignLibrary)
Loading required package: DeclareDesign
Loading required package: randomizr
Loading required package: fabricatr
Loading required package: estimatr
>
> test_check(package = "DesignLibrary")
Saving _problems/test_designers-17.R
Saving _problems/test_diagnose_designers-4.R
Saving _problems/test_fanout-6.R
Saving _problems/test_simulate_designers-4.R
[ FAIL 4 | WARN 1 | SKIP 0 | PASS 19 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test_designers.R:17:3'): (code run outside of `test_that()`) ────────
Error in `declare_potential_outcomes(Y ~ a[type] + b[type] * X + d[type] * Z + u_Y, assignment_variables = "X")`: `declare_potential_outcomes()` is not a step in DeclareDesign 2.0.
ℹ Put potential outcomes in the model, as a formula:
• declare_model(N = 100, potential_outcomes(Y ~ 0.2 * Z + U))
ℹ Named potential outcomes are ordinary model variables:
• declare_model(Y_Z_0 = U, Y_Z_1 = U + 0.2)
Backtrace:
▆
1. └─DesignLibrary (local) the_designer() at test_designers.R:17:3
2. └─DeclareDesign::declare_potential_outcomes(Y ~ a[type] + b[type] * X + d[type] * Z + u_Y, assignment_variables = "X")
3. └─rlang::abort(...)
── Error ('test_diagnose_designers.R:4:3'): with and without term ──────────────
Error in `declare_potential_outcomes(Y_A_0_B_0 = mean_A0B0 + u + rnorm(N, sd = outcome_sds[1]), Y_A_0_B_1 = mean_A0B1 + u + rnorm(N, sd = outcome_sds[2]), Y_A_1_B_0 = mean_A1B0 + u + rnorm(N, sd = outcome_sds[3]), Y_A_1_B_1 = mean_A1B1 + u + rnorm(N, sd = outcome_sds[4]))`: `declare_potential_outcomes()` is not a step in DeclareDesign 2.0.
ℹ Put potential outcomes in the model, as a formula:
• declare_model(N = 100, potential_outcomes(Y ~ 0.2 * Z + U))
ℹ Named potential outcomes are ordinary model variables:
• declare_model(Y_Z_0 = U, Y_Z_1 = U + 0.2)
Backtrace:
▆
1. └─DesignLibrary::two_by_two_designer(...) at test_diagnose_designers.R:4:3
2. └─DeclareDesign::declare_potential_outcomes(...)
3. └─rlang::abort(...)
── Error ('test_fanout.R:6:3'): fan out IDs are correct ────────────────────────
Error in `declare_potential_outcomes(Y ~ (1 - Z) * (u_0 * control_sd + control_mean) + Z * (u_1 * treatment_sd + treatment_mean))`: `declare_potential_outcomes()` is not a step in DeclareDesign 2.0.
ℹ Put potential outcomes in the model, as a formula:
• declare_model(N = 100, potential_outcomes(Y ~ 0.2 * Z + U))
ℹ Named potential outcomes are ordinary model variables:
• declare_model(Y_Z_0 = U, Y_Z_1 = U + 0.2)
Backtrace:
▆
1. └─DesignLibrary::two_arm_designer(rho = 0) at test_fanout.R:6:3
2. └─DeclareDesign::declare_potential_outcomes(...)
3. └─rlang::abort(...)
── Error ('test_simulate_designers.R:4:3'): MH sim ids ─────────────────────────
Error in `declare_potential_outcomes(Y ~ (1 - Z) * (u_0 * control_sd + control_mean) + Z * (u_1 * treatment_sd + treatment_mean))`: `declare_potential_outcomes()` is not a step in DeclareDesign 2.0.
ℹ Put potential outcomes in the model, as a formula:
• declare_model(N = 100, potential_outcomes(Y ~ 0.2 * Z + U))
ℹ Named potential outcomes are ordinary model variables:
• declare_model(Y_Z_0 = U, Y_Z_1 = U + 0.2)
Backtrace:
▆
1. └─DesignLibrary::two_arm_designer() at test_simulate_designers.R:4:3
2. └─DeclareDesign::declare_potential_outcomes(...)
3. └─rlang::abort(...)
[ FAIL 4 | WARN 1 | SKIP 0 | PASS 19 ]
Error:
! Test failures.
Execution halted
Flavors: r-patched-linux-x86_64, r-release-linux-x86_64
Version: 0.1.10
Check: tests
Result: ERROR
Running 'testthat.R' [2s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
> library(testthat)
> library(DesignLibrary)
Loading required package: DeclareDesign
Loading required package: randomizr
Loading required package: fabricatr
Loading required package: estimatr
>
> test_check(package = "DesignLibrary")
Saving _problems/test_designers-17.R
Saving _problems/test_diagnose_designers-4.R
Saving _problems/test_fanout-6.R
Saving _problems/test_simulate_designers-4.R
[ FAIL 4 | WARN 1 | SKIP 0 | PASS 19 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test_designers.R:17:3'): (code run outside of `test_that()`) ────────
Error in `declare_potential_outcomes(Y ~ a[type] + b[type] * X + d[type] * Z + u_Y, assignment_variables = "X")`: `declare_potential_outcomes()` is not a step in DeclareDesign 2.0.
ℹ Put potential outcomes in the model, as a formula:
• declare_model(N = 100, potential_outcomes(Y ~ 0.2 * Z + U))
ℹ Named potential outcomes are ordinary model variables:
• declare_model(Y_Z_0 = U, Y_Z_1 = U + 0.2)
Backtrace:
▆
1. └─DesignLibrary (local) the_designer() at test_designers.R:17:3
2. └─DeclareDesign::declare_potential_outcomes(Y ~ a[type] + b[type] * X + d[type] * Z + u_Y, assignment_variables = "X")
3. └─rlang::abort(...)
── Error ('test_diagnose_designers.R:4:3'): with and without term ──────────────
Error in `declare_potential_outcomes(Y_A_0_B_0 = mean_A0B0 + u + rnorm(N, sd = outcome_sds[1]), Y_A_0_B_1 = mean_A0B1 + u + rnorm(N, sd = outcome_sds[2]), Y_A_1_B_0 = mean_A1B0 + u + rnorm(N, sd = outcome_sds[3]), Y_A_1_B_1 = mean_A1B1 + u + rnorm(N, sd = outcome_sds[4]))`: `declare_potential_outcomes()` is not a step in DeclareDesign 2.0.
ℹ Put potential outcomes in the model, as a formula:
• declare_model(N = 100, potential_outcomes(Y ~ 0.2 * Z + U))
ℹ Named potential outcomes are ordinary model variables:
• declare_model(Y_Z_0 = U, Y_Z_1 = U + 0.2)
Backtrace:
▆
1. └─DesignLibrary::two_by_two_designer(...) at test_diagnose_designers.R:4:3
2. └─DeclareDesign::declare_potential_outcomes(...)
3. └─rlang::abort(...)
── Error ('test_fanout.R:6:3'): fan out IDs are correct ────────────────────────
Error in `declare_potential_outcomes(Y ~ (1 - Z) * (u_0 * control_sd + control_mean) + Z * (u_1 * treatment_sd + treatment_mean))`: `declare_potential_outcomes()` is not a step in DeclareDesign 2.0.
ℹ Put potential outcomes in the model, as a formula:
• declare_model(N = 100, potential_outcomes(Y ~ 0.2 * Z + U))
ℹ Named potential outcomes are ordinary model variables:
• declare_model(Y_Z_0 = U, Y_Z_1 = U + 0.2)
Backtrace:
▆
1. └─DesignLibrary::two_arm_designer(rho = 0) at test_fanout.R:6:3
2. └─DeclareDesign::declare_potential_outcomes(...)
3. └─rlang::abort(...)
── Error ('test_simulate_designers.R:4:3'): MH sim ids ─────────────────────────
Error in `declare_potential_outcomes(Y ~ (1 - Z) * (u_0 * control_sd + control_mean) + Z * (u_1 * treatment_sd + treatment_mean))`: `declare_potential_outcomes()` is not a step in DeclareDesign 2.0.
ℹ Put potential outcomes in the model, as a formula:
• declare_model(N = 100, potential_outcomes(Y ~ 0.2 * Z + U))
ℹ Named potential outcomes are ordinary model variables:
• declare_model(Y_Z_0 = U, Y_Z_1 = U + 0.2)
Backtrace:
▆
1. └─DesignLibrary::two_arm_designer() at test_simulate_designers.R:4:3
2. └─DeclareDesign::declare_potential_outcomes(...)
3. └─rlang::abort(...)
[ FAIL 4 | WARN 1 | SKIP 0 | PASS 19 ]
Error:
! Test failures.
Execution halted
Flavor: r-release-windows-x86_64