Last updated on 2024-05-07 12:56:44 CEST.
Package | ERROR | OK |
---|---|---|
bayesMeanScale | 5 | 8 |
Current CRAN status: ERROR: 5, OK: 8
Version: 0.1.1
Check: whether package can be installed
Result: WARN
Found the following significant warnings:
Warning: namespace ‘rstanarm’ is not available and has been replaced
Warning: namespace ‘rstan’ is not available and has been replaced
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.1
Check: tests
Result: ERROR
Running ‘testthat.R’ [17s/20s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> # This file is part of the standard setup for testthat.
> # It is recommended that you do not modify it.
> #
> # Where should you do additional test configuration?
> # Learn more about the roles of various files in:
> # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
> # * https://testthat.r-lib.org/articles/special-files.html
>
> library(testthat)
> library(bayesMeanScale)
>
> test_check("bayesMeanScale")
Loading required package: rstan
Loading required package: StanHeaders
rstan version 2.32.6 (Stan version 2.32.2)
For execution on a local, multicore CPU with excess RAM we recommend calling
options(mc.cores = parallel::detectCores()).
To avoid recompilation of unchanged Stan programs, we recommend calling
rstan_options(auto_write = TRUE)
For within-chain threading using `reduce_sum()` or `map_rect()` Stan functions,
change `threads_per_chain` option:
rstan_options(threads_per_chain = 1)
[ FAIL 38 | WARN 0 | SKIP 0 | PASS 55 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-bayes-count-marg-effects.R:5:3'): make sure all configurations of bayesCountMargEffF run without error ──
Expected `bayesCountMargEffF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-bayes-count-marg-effects.R:6:3'): make sure all configurations of bayesCountMargEffF run without error ──
Expected `bayesCountMargEffF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-bayes-count-marg-effects.R:7:3'): make sure all configurations of bayesCountMargEffF run without error ──
Expected `bayesCountMargEffF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-bayes-count-marg-effects.R:8:3'): make sure all configurations of bayesCountMargEffF run without error ──
Expected `bayesCountMargEffF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-bayes-count-marg-effects.R:9:3'): make sure all configurations of bayesCountMargEffF run without error ──
Expected `bayesCountMargEffF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-bayes-count-marg-effects.R:11:3'): make sure all configurations of bayesCountMargEffF run without error ──
Expected `bayesCountMargEffF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-bayes-count-marg-effects.R:12:3'): make sure all configurations of bayesCountMargEffF run without error ──
Expected `bayesCountMargEffF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-bayes-count-marg-effects.R:13:3'): make sure all configurations of bayesCountMargEffF run without error ──
Expected `bayesCountMargEffF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-bayes-count-marg-effects.R:14:3'): make sure all configurations of bayesCountMargEffF run without error ──
Expected `bayesCountMargEffF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-bayes-count-marg-effects.R:15:3'): make sure all configurations of bayesCountMargEffF run without error ──
Expected `bayesCountMargEffF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Error ('test-bayes-count-marg-effects.R:21:3'): make sure all configurations of bayesCountMargEffF run without warning ──
Error: All variables in all chains must have the same length.
Backtrace:
▆
1. ├─testthat::expect_no_warning(...) at test-bayes-count-marg-effects.R:21:3
2. │ └─testthat:::expect_no_(...)
3. │ └─testthat:::quasi_capture(enquo(object), NULL, capture)
4. │ ├─testthat (local) .capture(...)
5. │ │ └─rlang::try_fetch(...)
6. │ │ └─base::withCallingHandlers(...)
7. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
8. └─bayesMeanScale::bayesCountMargEffF(...)
9. ├─base::sample(...)
10. ├─base::nrow(posterior::as_draws_df(model))
11. ├─posterior::as_draws_df(model)
12. └─posterior:::as_draws_df.default(model)
13. ├─posterior::as_draws(x)
14. └─posterior:::as_draws.default(x)
15. └─posterior (local) fun(x, ...)
16. └─posterior:::stop_no_call("All variables in all chains must have the same length.")
── Failure ('test-bayes-count-preds.R:5:3'): make sure all configurations of bayesCountPredsF run without error ──
Expected `bayesCountPredsF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-bayes-count-preds.R:6:3'): make sure all configurations of bayesCountPredsF run without error ──
Expected `bayesCountPredsF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-bayes-count-preds.R:7:3'): make sure all configurations of bayesCountPredsF run without error ──
Expected `bayesCountPredsF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-bayes-count-preds.R:8:3'): make sure all configurations of bayesCountPredsF run without error ──
Expected `bayesCountPredsF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-bayes-count-preds.R:9:3'): make sure all configurations of bayesCountPredsF run without error ──
Expected `bayesCountPredsF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-bayes-count-preds.R:11:3'): make sure all configurations of bayesCountPredsF run without error ──
Expected `bayesCountPredsF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-bayes-count-preds.R:12:3'): make sure all configurations of bayesCountPredsF run without error ──
Expected `bayesCountPredsF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-bayes-count-preds.R:13:3'): make sure all configurations of bayesCountPredsF run without error ──
Expected `bayesCountPredsF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-bayes-count-preds.R:14:3'): make sure all configurations of bayesCountPredsF run without error ──
Expected `bayesCountPredsF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-bayes-count-preds.R:15:3'): make sure all configurations of bayesCountPredsF run without error ──
Expected `bayesCountPredsF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Error ('test-bayes-count-preds.R:21:3'): make sure all configurations of bayesCountPredsF run without warning ──
Error: All variables in all chains must have the same length.
Backtrace:
▆
1. ├─testthat::expect_no_warning(...) at test-bayes-count-preds.R:21:3
2. │ └─testthat:::expect_no_(...)
3. │ └─testthat:::quasi_capture(enquo(object), NULL, capture)
4. │ ├─testthat (local) .capture(...)
5. │ │ └─rlang::try_fetch(...)
6. │ │ └─base::withCallingHandlers(...)
7. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
8. └─bayesMeanScale::bayesCountPredsF(...)
9. ├─base::sample(...)
10. ├─base::nrow(posterior::as_draws_df(model))
11. ├─posterior::as_draws_df(model)
12. └─posterior:::as_draws_df.default(model)
13. ├─posterior::as_draws(x)
14. └─posterior:::as_draws.default(x)
15. └─posterior (local) fun(x, ...)
16. └─posterior:::stop_no_call("All variables in all chains must have the same length.")
── Error ('test-bayes-count-preds.R:37:1'): (code run outside of `test_that()`) ──
Error: All variables in all chains must have the same length.
Backtrace:
▆
1. ├─... %>% subset(., select = c(mean)) at test-bayes-count-preds.R:37:1
2. ├─base::subset(., select = c(mean))
3. └─bayesMeanScale::bayesCountPredsF(...)
4. ├─base::sample(...)
5. ├─base::nrow(posterior::as_draws_df(model))
6. ├─posterior::as_draws_df(model)
7. └─posterior:::as_draws_df.default(model)
8. ├─posterior::as_draws(x)
9. └─posterior:::as_draws.default(x)
10. └─posterior (local) fun(x, ...)
11. └─posterior:::stop_no_call("All variables in all chains must have the same length.")
── Failure ('test-bayes-preds.R:5:3'): make sure all configurations of bayesPredsF run without error ──
Expected `bayesPredsF(logitModel2, at = list(educ = c(0, 12)), n_draws = 500)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-bayes-preds.R:6:3'): make sure all configurations of bayesPredsF run without error ──
Expected `bayesPredsF(logitModel, at = list(educ = c(0, 12)), n_draws = 500)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-bayes-preds.R:7:3'): make sure all configurations of bayesPredsF run without error ──
Expected `bayesPredsF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-bayes-preds.R:8:3'): make sure all configurations of bayesPredsF run without error ──
Expected `bayesPredsF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-bayes-preds.R:9:3'): make sure all configurations of bayesPredsF run without error ──
Expected `bayesPredsF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Error ('test-bayes-preds.R:15:3'): make sure all configurations of bayesPredsF run without warning ──
Error: All variables in all chains must have the same length.
Backtrace:
▆
1. ├─testthat::expect_no_warning(...) at test-bayes-preds.R:15:3
2. │ └─testthat:::expect_no_(...)
3. │ └─testthat:::quasi_capture(enquo(object), NULL, capture)
4. │ ├─testthat (local) .capture(...)
5. │ │ └─rlang::try_fetch(...)
6. │ │ └─base::withCallingHandlers(...)
7. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
8. └─bayesMeanScale::bayesPredsF(...)
9. ├─base::sample(...)
10. ├─base::nrow(posterior::as_draws_df(model))
11. ├─posterior::as_draws_df(model)
12. └─posterior:::as_draws_df.default(model)
13. ├─posterior::as_draws(x)
14. └─posterior:::as_draws.default(x)
15. └─posterior (local) fun(x, ...)
16. └─posterior:::stop_no_call("All variables in all chains must have the same length.")
── Error ('test-marg-compare-error-check.R:3:1'): (code run outside of `test_that()`) ──
Error: All variables in all chains must have the same length.
Backtrace:
▆
1. └─bayesMeanScale::bayesMargEffF(...) at test-marg-compare-error-check.R:3:1
2. ├─base::sample(...)
3. ├─base::nrow(posterior::as_draws_df(model))
4. ├─posterior::as_draws_df(model)
5. └─posterior:::as_draws_df.default(model)
6. ├─posterior::as_draws(x)
7. └─posterior:::as_draws.default(x)
8. └─posterior (local) fun(x, ...)
9. └─posterior:::stop_no_call("All variables in all chains must have the same length.")
── Error ('test-marg-compare.R:2:1'): (code run outside of `test_that()`) ──────
Error: All variables in all chains must have the same length.
Backtrace:
▆
1. └─bayesMeanScale::bayesMargEffF(...) at test-marg-compare.R:2:1
2. ├─base::sample(...)
3. ├─base::nrow(posterior::as_draws_df(model))
4. ├─posterior::as_draws_df(model)
5. └─posterior:::as_draws_df.default(model)
6. ├─posterior::as_draws(x)
7. └─posterior:::as_draws.default(x)
8. └─posterior (local) fun(x, ...)
9. └─posterior:::stop_no_call("All variables in all chains must have the same length.")
── Failure ('test-marg-effects.R:5:3'): make sure all configurations of bayesMargEffF run without error ──
Expected `bayesMargEffF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-marg-effects.R:6:3'): make sure all configurations of bayesMargEffF run without error ──
Expected `bayesMargEffF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-marg-effects.R:7:3'): make sure all configurations of bayesMargEffF run without error ──
Expected `bayesMargEffF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-marg-effects.R:8:3'): make sure all configurations of bayesMargEffF run without error ──
Expected `bayesMargEffF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-marg-effects.R:9:3'): make sure all configurations of bayesMargEffF run without error ──
Expected `bayesMargEffF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Error ('test-marg-effects.R:15:3'): make sure all configurations of bayesMargEffF run without warning ──
Error: All variables in all chains must have the same length.
Backtrace:
▆
1. ├─testthat::expect_no_warning(...) at test-marg-effects.R:15:3
2. │ └─testthat:::expect_no_(...)
3. │ └─testthat:::quasi_capture(enquo(object), NULL, capture)
4. │ ├─testthat (local) .capture(...)
5. │ │ └─rlang::try_fetch(...)
6. │ │ └─base::withCallingHandlers(...)
7. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
8. └─bayesMeanScale::bayesMargEffF(...)
9. ├─base::sample(...)
10. ├─base::nrow(posterior::as_draws_df(model))
11. ├─posterior::as_draws_df(model)
12. └─posterior:::as_draws_df.default(model)
13. ├─posterior::as_draws(x)
14. └─posterior:::as_draws.default(x)
15. └─posterior (local) fun(x, ...)
16. └─posterior:::stop_no_call("All variables in all chains must have the same length.")
── Error ('test-marg-effects.R:25:1'): (code run outside of `test_that()`) ─────
Error: All variables in all chains must have the same length.
Backtrace:
▆
1. ├─... %>% subset(., select = c(mean)) at test-marg-effects.R:25:1
2. ├─base::subset(., select = c(mean))
3. └─bayesMeanScale::bayesMargEffF(...)
4. ├─base::sample(...)
5. ├─base::nrow(posterior::as_draws_df(model))
6. ├─posterior::as_draws_df(model)
7. └─posterior:::as_draws_df.default(model)
8. ├─posterior::as_draws(x)
9. └─posterior:::as_draws.default(x)
10. └─posterior (local) fun(x, ...)
11. └─posterior:::stop_no_call("All variables in all chains must have the same length.")
[ FAIL 38 | WARN 0 | SKIP 0 | PASS 55 ]
Error: Test failures
Execution halted
Flavor: r-devel-linux-x86_64-debian-clang
Version: 0.1.1
Check: tests
Result: ERROR
Running ‘testthat.R’ [12s/21s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> # This file is part of the standard setup for testthat.
> # It is recommended that you do not modify it.
> #
> # Where should you do additional test configuration?
> # Learn more about the roles of various files in:
> # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
> # * https://testthat.r-lib.org/articles/special-files.html
>
> library(testthat)
> library(bayesMeanScale)
>
> test_check("bayesMeanScale")
Loading required package: rstan
Loading required package: StanHeaders
rstan version 2.32.6 (Stan version 2.32.2)
For execution on a local, multicore CPU with excess RAM we recommend calling
options(mc.cores = parallel::detectCores()).
To avoid recompilation of unchanged Stan programs, we recommend calling
rstan_options(auto_write = TRUE)
For within-chain threading using `reduce_sum()` or `map_rect()` Stan functions,
change `threads_per_chain` option:
rstan_options(threads_per_chain = 1)
[ FAIL 38 | WARN 0 | SKIP 0 | PASS 55 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-bayes-count-marg-effects.R:5:3'): make sure all configurations of bayesCountMargEffF run without error ──
Expected `bayesCountMargEffF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-bayes-count-marg-effects.R:6:3'): make sure all configurations of bayesCountMargEffF run without error ──
Expected `bayesCountMargEffF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-bayes-count-marg-effects.R:7:3'): make sure all configurations of bayesCountMargEffF run without error ──
Expected `bayesCountMargEffF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-bayes-count-marg-effects.R:8:3'): make sure all configurations of bayesCountMargEffF run without error ──
Expected `bayesCountMargEffF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-bayes-count-marg-effects.R:9:3'): make sure all configurations of bayesCountMargEffF run without error ──
Expected `bayesCountMargEffF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-bayes-count-marg-effects.R:11:3'): make sure all configurations of bayesCountMargEffF run without error ──
Expected `bayesCountMargEffF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-bayes-count-marg-effects.R:12:3'): make sure all configurations of bayesCountMargEffF run without error ──
Expected `bayesCountMargEffF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-bayes-count-marg-effects.R:13:3'): make sure all configurations of bayesCountMargEffF run without error ──
Expected `bayesCountMargEffF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-bayes-count-marg-effects.R:14:3'): make sure all configurations of bayesCountMargEffF run without error ──
Expected `bayesCountMargEffF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-bayes-count-marg-effects.R:15:3'): make sure all configurations of bayesCountMargEffF run without error ──
Expected `bayesCountMargEffF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Error ('test-bayes-count-marg-effects.R:21:3'): make sure all configurations of bayesCountMargEffF run without warning ──
Error: All variables in all chains must have the same length.
Backtrace:
▆
1. ├─testthat::expect_no_warning(...) at test-bayes-count-marg-effects.R:21:3
2. │ └─testthat:::expect_no_(...)
3. │ └─testthat:::quasi_capture(enquo(object), NULL, capture)
4. │ ├─testthat (local) .capture(...)
5. │ │ └─rlang::try_fetch(...)
6. │ │ └─base::withCallingHandlers(...)
7. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
8. └─bayesMeanScale::bayesCountMargEffF(...)
9. ├─base::sample(...)
10. ├─base::nrow(posterior::as_draws_df(model))
11. ├─posterior::as_draws_df(model)
12. └─posterior:::as_draws_df.default(model)
13. ├─posterior::as_draws(x)
14. └─posterior:::as_draws.default(x)
15. └─posterior (local) fun(x, ...)
16. └─posterior:::stop_no_call("All variables in all chains must have the same length.")
── Failure ('test-bayes-count-preds.R:5:3'): make sure all configurations of bayesCountPredsF run without error ──
Expected `bayesCountPredsF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-bayes-count-preds.R:6:3'): make sure all configurations of bayesCountPredsF run without error ──
Expected `bayesCountPredsF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-bayes-count-preds.R:7:3'): make sure all configurations of bayesCountPredsF run without error ──
Expected `bayesCountPredsF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-bayes-count-preds.R:8:3'): make sure all configurations of bayesCountPredsF run without error ──
Expected `bayesCountPredsF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-bayes-count-preds.R:9:3'): make sure all configurations of bayesCountPredsF run without error ──
Expected `bayesCountPredsF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-bayes-count-preds.R:11:3'): make sure all configurations of bayesCountPredsF run without error ──
Expected `bayesCountPredsF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-bayes-count-preds.R:12:3'): make sure all configurations of bayesCountPredsF run without error ──
Expected `bayesCountPredsF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-bayes-count-preds.R:13:3'): make sure all configurations of bayesCountPredsF run without error ──
Expected `bayesCountPredsF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-bayes-count-preds.R:14:3'): make sure all configurations of bayesCountPredsF run without error ──
Expected `bayesCountPredsF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-bayes-count-preds.R:15:3'): make sure all configurations of bayesCountPredsF run without error ──
Expected `bayesCountPredsF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Error ('test-bayes-count-preds.R:21:3'): make sure all configurations of bayesCountPredsF run without warning ──
Error: All variables in all chains must have the same length.
Backtrace:
▆
1. ├─testthat::expect_no_warning(...) at test-bayes-count-preds.R:21:3
2. │ └─testthat:::expect_no_(...)
3. │ └─testthat:::quasi_capture(enquo(object), NULL, capture)
4. │ ├─testthat (local) .capture(...)
5. │ │ └─rlang::try_fetch(...)
6. │ │ └─base::withCallingHandlers(...)
7. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
8. └─bayesMeanScale::bayesCountPredsF(...)
9. ├─base::sample(...)
10. ├─base::nrow(posterior::as_draws_df(model))
11. ├─posterior::as_draws_df(model)
12. └─posterior:::as_draws_df.default(model)
13. ├─posterior::as_draws(x)
14. └─posterior:::as_draws.default(x)
15. └─posterior (local) fun(x, ...)
16. └─posterior:::stop_no_call("All variables in all chains must have the same length.")
── Error ('test-bayes-count-preds.R:37:1'): (code run outside of `test_that()`) ──
Error: All variables in all chains must have the same length.
Backtrace:
▆
1. ├─... %>% subset(., select = c(mean)) at test-bayes-count-preds.R:37:1
2. ├─base::subset(., select = c(mean))
3. └─bayesMeanScale::bayesCountPredsF(...)
4. ├─base::sample(...)
5. ├─base::nrow(posterior::as_draws_df(model))
6. ├─posterior::as_draws_df(model)
7. └─posterior:::as_draws_df.default(model)
8. ├─posterior::as_draws(x)
9. └─posterior:::as_draws.default(x)
10. └─posterior (local) fun(x, ...)
11. └─posterior:::stop_no_call("All variables in all chains must have the same length.")
── Failure ('test-bayes-preds.R:5:3'): make sure all configurations of bayesPredsF run without error ──
Expected `bayesPredsF(logitModel2, at = list(educ = c(0, 12)), n_draws = 500)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-bayes-preds.R:6:3'): make sure all configurations of bayesPredsF run without error ──
Expected `bayesPredsF(logitModel, at = list(educ = c(0, 12)), n_draws = 500)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-bayes-preds.R:7:3'): make sure all configurations of bayesPredsF run without error ──
Expected `bayesPredsF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-bayes-preds.R:8:3'): make sure all configurations of bayesPredsF run without error ──
Expected `bayesPredsF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-bayes-preds.R:9:3'): make sure all configurations of bayesPredsF run without error ──
Expected `bayesPredsF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Error ('test-bayes-preds.R:15:3'): make sure all configurations of bayesPredsF run without warning ──
Error: All variables in all chains must have the same length.
Backtrace:
▆
1. ├─testthat::expect_no_warning(...) at test-bayes-preds.R:15:3
2. │ └─testthat:::expect_no_(...)
3. │ └─testthat:::quasi_capture(enquo(object), NULL, capture)
4. │ ├─testthat (local) .capture(...)
5. │ │ └─rlang::try_fetch(...)
6. │ │ └─base::withCallingHandlers(...)
7. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
8. └─bayesMeanScale::bayesPredsF(...)
9. ├─base::sample(...)
10. ├─base::nrow(posterior::as_draws_df(model))
11. ├─posterior::as_draws_df(model)
12. └─posterior:::as_draws_df.default(model)
13. ├─posterior::as_draws(x)
14. └─posterior:::as_draws.default(x)
15. └─posterior (local) fun(x, ...)
16. └─posterior:::stop_no_call("All variables in all chains must have the same length.")
── Error ('test-marg-compare-error-check.R:3:1'): (code run outside of `test_that()`) ──
Error: All variables in all chains must have the same length.
Backtrace:
▆
1. └─bayesMeanScale::bayesMargEffF(...) at test-marg-compare-error-check.R:3:1
2. ├─base::sample(...)
3. ├─base::nrow(posterior::as_draws_df(model))
4. ├─posterior::as_draws_df(model)
5. └─posterior:::as_draws_df.default(model)
6. ├─posterior::as_draws(x)
7. └─posterior:::as_draws.default(x)
8. └─posterior (local) fun(x, ...)
9. └─posterior:::stop_no_call("All variables in all chains must have the same length.")
── Error ('test-marg-compare.R:2:1'): (code run outside of `test_that()`) ──────
Error: All variables in all chains must have the same length.
Backtrace:
▆
1. └─bayesMeanScale::bayesMargEffF(...) at test-marg-compare.R:2:1
2. ├─base::sample(...)
3. ├─base::nrow(posterior::as_draws_df(model))
4. ├─posterior::as_draws_df(model)
5. └─posterior:::as_draws_df.default(model)
6. ├─posterior::as_draws(x)
7. └─posterior:::as_draws.default(x)
8. └─posterior (local) fun(x, ...)
9. └─posterior:::stop_no_call("All variables in all chains must have the same length.")
── Failure ('test-marg-effects.R:5:3'): make sure all configurations of bayesMargEffF run without error ──
Expected `bayesMargEffF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-marg-effects.R:6:3'): make sure all configurations of bayesMargEffF run without error ──
Expected `bayesMargEffF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-marg-effects.R:7:3'): make sure all configurations of bayesMargEffF run without error ──
Expected `bayesMargEffF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-marg-effects.R:8:3'): make sure all configurations of bayesMargEffF run without error ──
Expected `bayesMargEffF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-marg-effects.R:9:3'): make sure all configurations of bayesMargEffF run without error ──
Expected `bayesMargEffF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Error ('test-marg-effects.R:15:3'): make sure all configurations of bayesMargEffF run without warning ──
Error: All variables in all chains must have the same length.
Backtrace:
▆
1. ├─testthat::expect_no_warning(...) at test-marg-effects.R:15:3
2. │ └─testthat:::expect_no_(...)
3. │ └─testthat:::quasi_capture(enquo(object), NULL, capture)
4. │ ├─testthat (local) .capture(...)
5. │ │ └─rlang::try_fetch(...)
6. │ │ └─base::withCallingHandlers(...)
7. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
8. └─bayesMeanScale::bayesMargEffF(...)
9. ├─base::sample(...)
10. ├─base::nrow(posterior::as_draws_df(model))
11. ├─posterior::as_draws_df(model)
12. └─posterior:::as_draws_df.default(model)
13. ├─posterior::as_draws(x)
14. └─posterior:::as_draws.default(x)
15. └─posterior (local) fun(x, ...)
16. └─posterior:::stop_no_call("All variables in all chains must have the same length.")
── Error ('test-marg-effects.R:25:1'): (code run outside of `test_that()`) ─────
Error: All variables in all chains must have the same length.
Backtrace:
▆
1. ├─... %>% subset(., select = c(mean)) at test-marg-effects.R:25:1
2. ├─base::subset(., select = c(mean))
3. └─bayesMeanScale::bayesMargEffF(...)
4. ├─base::sample(...)
5. ├─base::nrow(posterior::as_draws_df(model))
6. ├─posterior::as_draws_df(model)
7. └─posterior:::as_draws_df.default(model)
8. ├─posterior::as_draws(x)
9. └─posterior:::as_draws.default(x)
10. └─posterior (local) fun(x, ...)
11. └─posterior:::stop_no_call("All variables in all chains must have the same length.")
[ FAIL 38 | WARN 0 | SKIP 0 | PASS 55 ]
Error: Test failures
Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc
Version: 0.1.1
Check: tests
Result: ERROR
Running ‘testthat.R’ [16s/22s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> # This file is part of the standard setup for testthat.
> # It is recommended that you do not modify it.
> #
> # Where should you do additional test configuration?
> # Learn more about the roles of various files in:
> # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
> # * https://testthat.r-lib.org/articles/special-files.html
>
> library(testthat)
> library(bayesMeanScale)
>
> test_check("bayesMeanScale")
Loading required package: rstan
Loading required package: StanHeaders
rstan version 2.32.6 (Stan version 2.32.2)
For execution on a local, multicore CPU with excess RAM we recommend calling
options(mc.cores = parallel::detectCores()).
To avoid recompilation of unchanged Stan programs, we recommend calling
rstan_options(auto_write = TRUE)
For within-chain threading using `reduce_sum()` or `map_rect()` Stan functions,
change `threads_per_chain` option:
rstan_options(threads_per_chain = 1)
[ FAIL 38 | WARN 0 | SKIP 0 | PASS 55 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-bayes-count-marg-effects.R:5:3'): make sure all configurations of bayesCountMargEffF run without error ──
Expected `bayesCountMargEffF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-bayes-count-marg-effects.R:6:3'): make sure all configurations of bayesCountMargEffF run without error ──
Expected `bayesCountMargEffF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-bayes-count-marg-effects.R:7:3'): make sure all configurations of bayesCountMargEffF run without error ──
Expected `bayesCountMargEffF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-bayes-count-marg-effects.R:8:3'): make sure all configurations of bayesCountMargEffF run without error ──
Expected `bayesCountMargEffF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-bayes-count-marg-effects.R:9:3'): make sure all configurations of bayesCountMargEffF run without error ──
Expected `bayesCountMargEffF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-bayes-count-marg-effects.R:11:3'): make sure all configurations of bayesCountMargEffF run without error ──
Expected `bayesCountMargEffF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-bayes-count-marg-effects.R:12:3'): make sure all configurations of bayesCountMargEffF run without error ──
Expected `bayesCountMargEffF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-bayes-count-marg-effects.R:13:3'): make sure all configurations of bayesCountMargEffF run without error ──
Expected `bayesCountMargEffF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-bayes-count-marg-effects.R:14:3'): make sure all configurations of bayesCountMargEffF run without error ──
Expected `bayesCountMargEffF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-bayes-count-marg-effects.R:15:3'): make sure all configurations of bayesCountMargEffF run without error ──
Expected `bayesCountMargEffF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Error ('test-bayes-count-marg-effects.R:21:3'): make sure all configurations of bayesCountMargEffF run without warning ──
Error: All variables in all chains must have the same length.
Backtrace:
▆
1. ├─testthat::expect_no_warning(...) at test-bayes-count-marg-effects.R:21:3
2. │ └─testthat:::expect_no_(...)
3. │ └─testthat:::quasi_capture(enquo(object), NULL, capture)
4. │ ├─testthat (local) .capture(...)
5. │ │ └─rlang::try_fetch(...)
6. │ │ └─base::withCallingHandlers(...)
7. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
8. └─bayesMeanScale::bayesCountMargEffF(...)
9. ├─base::sample(...)
10. ├─base::nrow(posterior::as_draws_df(model))
11. ├─posterior::as_draws_df(model)
12. └─posterior:::as_draws_df.default(model)
13. ├─posterior::as_draws(x)
14. └─posterior:::as_draws.default(x)
15. └─posterior (local) fun(x, ...)
16. └─posterior:::stop_no_call("All variables in all chains must have the same length.")
── Failure ('test-bayes-count-preds.R:5:3'): make sure all configurations of bayesCountPredsF run without error ──
Expected `bayesCountPredsF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-bayes-count-preds.R:6:3'): make sure all configurations of bayesCountPredsF run without error ──
Expected `bayesCountPredsF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-bayes-count-preds.R:7:3'): make sure all configurations of bayesCountPredsF run without error ──
Expected `bayesCountPredsF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-bayes-count-preds.R:8:3'): make sure all configurations of bayesCountPredsF run without error ──
Expected `bayesCountPredsF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-bayes-count-preds.R:9:3'): make sure all configurations of bayesCountPredsF run without error ──
Expected `bayesCountPredsF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-bayes-count-preds.R:11:3'): make sure all configurations of bayesCountPredsF run without error ──
Expected `bayesCountPredsF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-bayes-count-preds.R:12:3'): make sure all configurations of bayesCountPredsF run without error ──
Expected `bayesCountPredsF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-bayes-count-preds.R:13:3'): make sure all configurations of bayesCountPredsF run without error ──
Expected `bayesCountPredsF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-bayes-count-preds.R:14:3'): make sure all configurations of bayesCountPredsF run without error ──
Expected `bayesCountPredsF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-bayes-count-preds.R:15:3'): make sure all configurations of bayesCountPredsF run without error ──
Expected `bayesCountPredsF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Error ('test-bayes-count-preds.R:21:3'): make sure all configurations of bayesCountPredsF run without warning ──
Error: All variables in all chains must have the same length.
Backtrace:
▆
1. ├─testthat::expect_no_warning(...) at test-bayes-count-preds.R:21:3
2. │ └─testthat:::expect_no_(...)
3. │ └─testthat:::quasi_capture(enquo(object), NULL, capture)
4. │ ├─testthat (local) .capture(...)
5. │ │ └─rlang::try_fetch(...)
6. │ │ └─base::withCallingHandlers(...)
7. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
8. └─bayesMeanScale::bayesCountPredsF(...)
9. ├─base::sample(...)
10. ├─base::nrow(posterior::as_draws_df(model))
11. ├─posterior::as_draws_df(model)
12. └─posterior:::as_draws_df.default(model)
13. ├─posterior::as_draws(x)
14. └─posterior:::as_draws.default(x)
15. └─posterior (local) fun(x, ...)
16. └─posterior:::stop_no_call("All variables in all chains must have the same length.")
── Error ('test-bayes-count-preds.R:37:1'): (code run outside of `test_that()`) ──
Error: All variables in all chains must have the same length.
Backtrace:
▆
1. ├─... %>% subset(., select = c(mean)) at test-bayes-count-preds.R:37:1
2. ├─base::subset(., select = c(mean))
3. └─bayesMeanScale::bayesCountPredsF(...)
4. ├─base::sample(...)
5. ├─base::nrow(posterior::as_draws_df(model))
6. ├─posterior::as_draws_df(model)
7. └─posterior:::as_draws_df.default(model)
8. ├─posterior::as_draws(x)
9. └─posterior:::as_draws.default(x)
10. └─posterior (local) fun(x, ...)
11. └─posterior:::stop_no_call("All variables in all chains must have the same length.")
── Failure ('test-bayes-preds.R:5:3'): make sure all configurations of bayesPredsF run without error ──
Expected `bayesPredsF(logitModel2, at = list(educ = c(0, 12)), n_draws = 500)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-bayes-preds.R:6:3'): make sure all configurations of bayesPredsF run without error ──
Expected `bayesPredsF(logitModel, at = list(educ = c(0, 12)), n_draws = 500)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-bayes-preds.R:7:3'): make sure all configurations of bayesPredsF run without error ──
Expected `bayesPredsF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-bayes-preds.R:8:3'): make sure all configurations of bayesPredsF run without error ──
Expected `bayesPredsF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-bayes-preds.R:9:3'): make sure all configurations of bayesPredsF run without error ──
Expected `bayesPredsF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Error ('test-bayes-preds.R:15:3'): make sure all configurations of bayesPredsF run without warning ──
Error: All variables in all chains must have the same length.
Backtrace:
▆
1. ├─testthat::expect_no_warning(...) at test-bayes-preds.R:15:3
2. │ └─testthat:::expect_no_(...)
3. │ └─testthat:::quasi_capture(enquo(object), NULL, capture)
4. │ ├─testthat (local) .capture(...)
5. │ │ └─rlang::try_fetch(...)
6. │ │ └─base::withCallingHandlers(...)
7. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
8. └─bayesMeanScale::bayesPredsF(...)
9. ├─base::sample(...)
10. ├─base::nrow(posterior::as_draws_df(model))
11. ├─posterior::as_draws_df(model)
12. └─posterior:::as_draws_df.default(model)
13. ├─posterior::as_draws(x)
14. └─posterior:::as_draws.default(x)
15. └─posterior (local) fun(x, ...)
16. └─posterior:::stop_no_call("All variables in all chains must have the same length.")
── Error ('test-marg-compare-error-check.R:3:1'): (code run outside of `test_that()`) ──
Error: All variables in all chains must have the same length.
Backtrace:
▆
1. └─bayesMeanScale::bayesMargEffF(...) at test-marg-compare-error-check.R:3:1
2. ├─base::sample(...)
3. ├─base::nrow(posterior::as_draws_df(model))
4. ├─posterior::as_draws_df(model)
5. └─posterior:::as_draws_df.default(model)
6. ├─posterior::as_draws(x)
7. └─posterior:::as_draws.default(x)
8. └─posterior (local) fun(x, ...)
9. └─posterior:::stop_no_call("All variables in all chains must have the same length.")
── Error ('test-marg-compare.R:2:1'): (code run outside of `test_that()`) ──────
Error: All variables in all chains must have the same length.
Backtrace:
▆
1. └─bayesMeanScale::bayesMargEffF(...) at test-marg-compare.R:2:1
2. ├─base::sample(...)
3. ├─base::nrow(posterior::as_draws_df(model))
4. ├─posterior::as_draws_df(model)
5. └─posterior:::as_draws_df.default(model)
6. ├─posterior::as_draws(x)
7. └─posterior:::as_draws.default(x)
8. └─posterior (local) fun(x, ...)
9. └─posterior:::stop_no_call("All variables in all chains must have the same length.")
── Failure ('test-marg-effects.R:5:3'): make sure all configurations of bayesMargEffF run without error ──
Expected `bayesMargEffF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-marg-effects.R:6:3'): make sure all configurations of bayesMargEffF run without error ──
Expected `bayesMargEffF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-marg-effects.R:7:3'): make sure all configurations of bayesMargEffF run without error ──
Expected `bayesMargEffF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-marg-effects.R:8:3'): make sure all configurations of bayesMargEffF run without error ──
Expected `bayesMargEffF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-marg-effects.R:9:3'): make sure all configurations of bayesMargEffF run without error ──
Expected `bayesMargEffF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Error ('test-marg-effects.R:15:3'): make sure all configurations of bayesMargEffF run without warning ──
Error: All variables in all chains must have the same length.
Backtrace:
▆
1. ├─testthat::expect_no_warning(...) at test-marg-effects.R:15:3
2. │ └─testthat:::expect_no_(...)
3. │ └─testthat:::quasi_capture(enquo(object), NULL, capture)
4. │ ├─testthat (local) .capture(...)
5. │ │ └─rlang::try_fetch(...)
6. │ │ └─base::withCallingHandlers(...)
7. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
8. └─bayesMeanScale::bayesMargEffF(...)
9. ├─base::sample(...)
10. ├─base::nrow(posterior::as_draws_df(model))
11. ├─posterior::as_draws_df(model)
12. └─posterior:::as_draws_df.default(model)
13. ├─posterior::as_draws(x)
14. └─posterior:::as_draws.default(x)
15. └─posterior (local) fun(x, ...)
16. └─posterior:::stop_no_call("All variables in all chains must have the same length.")
── Error ('test-marg-effects.R:25:1'): (code run outside of `test_that()`) ─────
Error: All variables in all chains must have the same length.
Backtrace:
▆
1. ├─... %>% subset(., select = c(mean)) at test-marg-effects.R:25:1
2. ├─base::subset(., select = c(mean))
3. └─bayesMeanScale::bayesMargEffF(...)
4. ├─base::sample(...)
5. ├─base::nrow(posterior::as_draws_df(model))
6. ├─posterior::as_draws_df(model)
7. └─posterior:::as_draws_df.default(model)
8. ├─posterior::as_draws(x)
9. └─posterior:::as_draws.default(x)
10. └─posterior (local) fun(x, ...)
11. └─posterior:::stop_no_call("All variables in all chains must have the same length.")
[ FAIL 38 | WARN 0 | SKIP 0 | PASS 55 ]
Error: Test failures
Execution halted
Flavor: r-patched-linux-x86_64
Version: 0.1.1
Check: package dependencies
Result: NOTE
Package suggested but not available for checking: ‘rstanarm’
Flavor: r-release-linux-x86_64
Version: 0.1.1
Check: tests
Result: ERROR
Running ‘testthat.R’ [8s/10s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> # This file is part of the standard setup for testthat.
> # It is recommended that you do not modify it.
> #
> # Where should you do additional test configuration?
> # Learn more about the roles of various files in:
> # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
> # * https://testthat.r-lib.org/articles/special-files.html
>
> library(testthat)
> library(bayesMeanScale)
>
> test_check("bayesMeanScale")
Loading required package: rstan
Loading required package: rstan
Loading required package: rstan
Loading required package: rstan
Loading required package: rstan
Loading required package: rstan
Loading required package: rstan
Loading required package: rstan
Loading required package: rstan
Loading required package: rstan
Loading required package: rstan
Loading required package: rstan
Loading required package: rstan
Loading required package: rstan
Loading required package: rstan
Loading required package: rstan
Loading required package: rstan
Loading required package: rstan
Loading required package: rstan
Loading required package: rstan
Loading required package: rstan
Loading required package: rstan
Loading required package: rstan
Loading required package: rstan
Loading required package: rstan
Loading required package: rstan
Loading required package: rstan
Loading required package: rstan
Loading required package: rstan
Loading required package: rstan
Loading required package: rstan
Loading required package: rstan
Loading required package: rstan
Loading required package: rstan
Loading required package: rstan
Loading required package: rstan
Loading required package: rstan
Loading required package: rstan
Loading required package: rstan
Loading required package: rstan
Loading required package: rstan
Loading required package: rstan
Loading required package: rstan
Loading required package: rstan
Loading required package: rstan
Loading required package: rstan
Loading required package: rstan
Loading required package: rstan
Loading required package: rstan
Loading required package: rstan
Loading required package: rstan
Loading required package: rstan
Loading required package: rstan
Loading required package: rstan
Loading required package: rstan
Loading required package: rstan
Loading required package: rstan
Loading required package: rstan
Loading required package: rstan
Loading required package: rstan
Loading required package: rstan
Loading required package: rstan
Loading required package: rstan
Loading required package: rstan
[ FAIL 64 | WARN 34 | SKIP 0 | PASS 85 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-bayes-count-marg-effects.R:5:3'): make sure all configurations of bayesCountMargEffF run without error ──
Expected `bayesCountMargEffF(...)` to run without any errors.
i Actually got a <simpleError> with text:
unable to find required package 'rstan'
── Failure ('test-bayes-count-marg-effects.R:6:3'): make sure all configurations of bayesCountMargEffF run without error ──
Expected `bayesCountMargEffF(...)` to run without any errors.
i Actually got a <simpleError> with text:
unable to find required package 'rstan'
── Failure ('test-bayes-count-marg-effects.R:7:3'): make sure all configurations of bayesCountMargEffF run without error ──
Expected `bayesCountMargEffF(...)` to run without any errors.
i Actually got a <simpleError> with text:
unable to find required package 'rstan'
── Failure ('test-bayes-count-marg-effects.R:8:3'): make sure all configurations of bayesCountMargEffF run without error ──
Expected `bayesCountMargEffF(...)` to run without any errors.
i Actually got a <simpleError> with text:
unable to find required package 'rstan'
── Failure ('test-bayes-count-marg-effects.R:9:3'): make sure all configurations of bayesCountMargEffF run without error ──
Expected `bayesCountMargEffF(...)` to run without any errors.
i Actually got a <simpleError> with text:
unable to find required package 'rstan'
── Failure ('test-bayes-count-marg-effects.R:11:3'): make sure all configurations of bayesCountMargEffF run without error ──
Expected `bayesCountMargEffF(...)` to run without any errors.
i Actually got a <simpleError> with text:
unable to find required package 'rstan'
── Failure ('test-bayes-count-marg-effects.R:12:3'): make sure all configurations of bayesCountMargEffF run without error ──
Expected `bayesCountMargEffF(...)` to run without any errors.
i Actually got a <simpleError> with text:
unable to find required package 'rstan'
── Failure ('test-bayes-count-marg-effects.R:13:3'): make sure all configurations of bayesCountMargEffF run without error ──
Expected `bayesCountMargEffF(...)` to run without any errors.
i Actually got a <simpleError> with text:
unable to find required package 'rstan'
── Failure ('test-bayes-count-marg-effects.R:14:3'): make sure all configurations of bayesCountMargEffF run without error ──
Expected `bayesCountMargEffF(...)` to run without any errors.
i Actually got a <simpleError> with text:
unable to find required package 'rstan'
── Failure ('test-bayes-count-marg-effects.R:15:3'): make sure all configurations of bayesCountMargEffF run without error ──
Expected `bayesCountMargEffF(...)` to run without any errors.
i Actually got a <simpleError> with text:
unable to find required package 'rstan'
── Failure ('test-bayes-count-marg-effects.R:21:3'): make sure all configurations of bayesCountMargEffF run without warning ──
Expected `bayesCountMargEffF(...)` to run without any warnings.
i Actually got a <simpleWarning> with text:
there is no package called 'rstan'
── Failure ('test-bayes-count-marg-effects.R:22:3'): make sure all configurations of bayesCountMargEffF run without warning ──
Expected `bayesCountMargEffF(...)` to run without any warnings.
i Actually got a <simpleWarning> with text:
there is no package called 'rstan'
── Failure ('test-bayes-count-marg-effects.R:23:3'): make sure all configurations of bayesCountMargEffF run without warning ──
Expected `bayesCountMargEffF(...)` to run without any warnings.
i Actually got a <simpleWarning> with text:
there is no package called 'rstan'
── Failure ('test-bayes-count-marg-effects.R:24:3'): make sure all configurations of bayesCountMargEffF run without warning ──
Expected `bayesCountMargEffF(...)` to run without any warnings.
i Actually got a <simpleWarning> with text:
there is no package called 'rstan'
── Failure ('test-bayes-count-marg-effects.R:25:3'): make sure all configurations of bayesCountMargEffF run without warning ──
Expected `bayesCountMargEffF(...)` to run without any warnings.
i Actually got a <simpleWarning> with text:
there is no package called 'rstan'
── Failure ('test-bayes-count-marg-effects.R:27:3'): make sure all configurations of bayesCountMargEffF run without warning ──
Expected `bayesCountMargEffF(...)` to run without any warnings.
i Actually got a <simpleWarning> with text:
there is no package called 'rstan'
── Failure ('test-bayes-count-marg-effects.R:28:3'): make sure all configurations of bayesCountMargEffF run without warning ──
Expected `bayesCountMargEffF(...)` to run without any warnings.
i Actually got a <simpleWarning> with text:
there is no package called 'rstan'
── Failure ('test-bayes-count-marg-effects.R:29:3'): make sure all configurations of bayesCountMargEffF run without warning ──
Expected `bayesCountMargEffF(...)` to run without any warnings.
i Actually got a <simpleWarning> with text:
there is no package called 'rstan'
── Failure ('test-bayes-count-marg-effects.R:30:3'): make sure all configurations of bayesCountMargEffF run without warning ──
Expected `bayesCountMargEffF(...)` to run without any warnings.
i Actually got a <simpleWarning> with text:
there is no package called 'rstan'
── Failure ('test-bayes-count-marg-effects.R:31:3'): make sure all configurations of bayesCountMargEffF run without warning ──
Expected `bayesCountMargEffF(...)` to run without any warnings.
i Actually got a <simpleWarning> with text:
there is no package called 'rstan'
── Failure ('test-bayes-count-preds.R:5:3'): make sure all configurations of bayesCountPredsF run without error ──
Expected `bayesCountPredsF(...)` to run without any errors.
i Actually got a <simpleError> with text:
unable to find required package 'rstan'
── Failure ('test-bayes-count-preds.R:6:3'): make sure all configurations of bayesCountPredsF run without error ──
Expected `bayesCountPredsF(...)` to run without any errors.
i Actually got a <simpleError> with text:
unable to find required package 'rstan'
── Failure ('test-bayes-count-preds.R:7:3'): make sure all configurations of bayesCountPredsF run without error ──
Expected `bayesCountPredsF(...)` to run without any errors.
i Actually got a <simpleError> with text:
unable to find required package 'rstan'
── Failure ('test-bayes-count-preds.R:8:3'): make sure all configurations of bayesCountPredsF run without error ──
Expected `bayesCountPredsF(...)` to run without any errors.
i Actually got a <simpleError> with text:
unable to find required package 'rstan'
── Failure ('test-bayes-count-preds.R:9:3'): make sure all configurations of bayesCountPredsF run without error ──
Expected `bayesCountPredsF(...)` to run without any errors.
i Actually got a <simpleError> with text:
unable to find required package 'rstan'
── Failure ('test-bayes-count-preds.R:11:3'): make sure all configurations of bayesCountPredsF run without error ──
Expected `bayesCountPredsF(...)` to run without any errors.
i Actually got a <simpleError> with text:
unable to find required package 'rstan'
── Failure ('test-bayes-count-preds.R:12:3'): make sure all configurations of bayesCountPredsF run without error ──
Expected `bayesCountPredsF(...)` to run without any errors.
i Actually got a <simpleError> with text:
unable to find required package 'rstan'
── Failure ('test-bayes-count-preds.R:13:3'): make sure all configurations of bayesCountPredsF run without error ──
Expected `bayesCountPredsF(...)` to run without any errors.
i Actually got a <simpleError> with text:
unable to find required package 'rstan'
── Failure ('test-bayes-count-preds.R:14:3'): make sure all configurations of bayesCountPredsF run without error ──
Expected `bayesCountPredsF(...)` to run without any errors.
i Actually got a <simpleError> with text:
unable to find required package 'rstan'
── Failure ('test-bayes-count-preds.R:15:3'): make sure all configurations of bayesCountPredsF run without error ──
Expected `bayesCountPredsF(...)` to run without any errors.
i Actually got a <simpleError> with text:
unable to find required package 'rstan'
── Failure ('test-bayes-count-preds.R:21:3'): make sure all configurations of bayesCountPredsF run without warning ──
Expected `bayesCountPredsF(...)` to run without any warnings.
i Actually got a <simpleWarning> with text:
there is no package called 'rstan'
── Failure ('test-bayes-count-preds.R:22:3'): make sure all configurations of bayesCountPredsF run without warning ──
Expected `bayesCountPredsF(...)` to run without any warnings.
i Actually got a <simpleWarning> with text:
there is no package called 'rstan'
── Failure ('test-bayes-count-preds.R:23:3'): make sure all configurations of bayesCountPredsF run without warning ──
Expected `bayesCountPredsF(...)` to run without any warnings.
i Actually got a <simpleWarning> with text:
there is no package called 'rstan'
── Failure ('test-bayes-count-preds.R:24:3'): make sure all configurations of bayesCountPredsF run without warning ──
Expected `bayesCountPredsF(...)` to run without any warnings.
i Actually got a <simpleWarning> with text:
there is no package called 'rstan'
── Failure ('test-bayes-count-preds.R:25:3'): make sure all configurations of bayesCountPredsF run without warning ──
Expected `bayesCountPredsF(...)` to run without any warnings.
i Actually got a <simpleWarning> with text:
there is no package called 'rstan'
── Failure ('test-bayes-count-preds.R:27:3'): make sure all configurations of bayesCountPredsF run without warning ──
Expected `bayesCountPredsF(...)` to run without any warnings.
i Actually got a <simpleWarning> with text:
there is no package called 'rstan'
── Failure ('test-bayes-count-preds.R:28:3'): make sure all configurations of bayesCountPredsF run without warning ──
Expected `bayesCountPredsF(...)` to run without any warnings.
i Actually got a <simpleWarning> with text:
there is no package called 'rstan'
── Failure ('test-bayes-count-preds.R:29:3'): make sure all configurations of bayesCountPredsF run without warning ──
Expected `bayesCountPredsF(...)` to run without any warnings.
i Actually got a <simpleWarning> with text:
there is no package called 'rstan'
── Failure ('test-bayes-count-preds.R:30:3'): make sure all configurations of bayesCountPredsF run without warning ──
Expected `bayesCountPredsF(...)` to run without any warnings.
i Actually got a <simpleWarning> with text:
there is no package called 'rstan'
── Failure ('test-bayes-count-preds.R:31:3'): make sure all configurations of bayesCountPredsF run without warning ──
Expected `bayesCountPredsF(...)` to run without any warnings.
i Actually got a <simpleWarning> with text:
there is no package called 'rstan'
── Error ('test-bayes-count-preds.R:37:1'): (code run outside of `test_that()`) ──
Error in `.requirePackage(package)`: unable to find required package 'rstan'
Backtrace:
▆
1. ├─... %>% subset(., select = c(mean)) at test-bayes-count-preds.R:37:1
2. ├─base::subset(., select = c(mean))
3. ├─bayesMeanScale::bayesCountPredsF(...)
4. │ ├─base::sample(...)
5. │ ├─base::nrow(posterior::as_draws_df(model))
6. │ ├─posterior::as_draws_df(model)
7. │ └─posterior:::as_draws_df.default(model)
8. │ ├─posterior::as_draws(x)
9. │ └─posterior:::as_draws.default(x)
10. │ └─posterior:::closest_draws_format(x)
11. │ └─posterior:::is_draws_rvars_like(x)
12. │ └─base::sapply(x, is_rvar)
13. │ └─base::lapply(X = X, FUN = FUN, ...)
14. │ └─posterior (local) FUN(X[[i]], ...)
15. └─methods:::.extendsForS3(`<chr>`)
16. └─methods::extends(Class, maybe = FALSE)
17. └─methods::getClassDef(class1)
18. └─methods:::.requirePackage(package)
── Failure ('test-bayes-preds.R:5:3'): make sure all configurations of bayesPredsF run without error ──
Expected `bayesPredsF(logitModel2, at = list(educ = c(0, 12)), n_draws = 500)` to run without any errors.
i Actually got a <simpleError> with text:
unable to find required package 'rstan'
── Failure ('test-bayes-preds.R:6:3'): make sure all configurations of bayesPredsF run without error ──
Expected `bayesPredsF(logitModel, at = list(educ = c(0, 12)), n_draws = 500)` to run without any errors.
i Actually got a <simpleError> with text:
unable to find required package 'rstan'
── Failure ('test-bayes-preds.R:7:3'): make sure all configurations of bayesPredsF run without error ──
Expected `bayesPredsF(...)` to run without any errors.
i Actually got a <simpleError> with text:
unable to find required package 'rstan'
── Failure ('test-bayes-preds.R:8:3'): make sure all configurations of bayesPredsF run without error ──
Expected `bayesPredsF(...)` to run without any errors.
i Actually got a <simpleError> with text:
unable to find required package 'rstan'
── Failure ('test-bayes-preds.R:9:3'): make sure all configurations of bayesPredsF run without error ──
Expected `bayesPredsF(...)` to run without any errors.
i Actually got a <simpleError> with text:
unable to find required package 'rstan'
── Failure ('test-bayes-preds.R:15:3'): make sure all configurations of bayesPredsF run without warning ──
Expected `bayesPredsF(logitModel2, at = list(educ = c(0, 12)), n_draws = 500)` to run without any warnings.
i Actually got a <simpleWarning> with text:
there is no package called 'rstan'
── Failure ('test-bayes-preds.R:16:3'): make sure all configurations of bayesPredsF run without warning ──
Expected `bayesPredsF(logitModel, at = list(educ = c(0, 12)), n_draws = 500)` to run without any warnings.
i Actually got a <simpleWarning> with text:
there is no package called 'rstan'
── Failure ('test-bayes-preds.R:17:3'): make sure all configurations of bayesPredsF run without warning ──
Expected `bayesPredsF(...)` to run without any warnings.
i Actually got a <simpleWarning> with text:
there is no package called 'rstan'
── Failure ('test-bayes-preds.R:18:3'): make sure all configurations of bayesPredsF run without warning ──
Expected `bayesPredsF(...)` to run without any warnings.
i Actually got a <simpleWarning> with text:
there is no package called 'rstan'
── Failure ('test-bayes-preds.R:19:3'): make sure all configurations of bayesPredsF run without warning ──
Expected `bayesPredsF(...)` to run without any warnings.
i Actually got a <simpleWarning> with text:
there is no package called 'rstan'
── Error ('test-marg-compare-error-check.R:3:1'): (code run outside of `test_that()`) ──
Error in `.requirePackage(package)`: unable to find required package 'rstan'
Backtrace:
▆
1. ├─bayesMeanScale::bayesMargEffF(...) at test-marg-compare-error-check.R:3:1
2. │ ├─base::sample(...)
3. │ ├─base::nrow(posterior::as_draws_df(model))
4. │ ├─posterior::as_draws_df(model)
5. │ └─posterior:::as_draws_df.default(model)
6. │ ├─posterior::as_draws(x)
7. │ └─posterior:::as_draws.default(x)
8. │ └─posterior:::closest_draws_format(x)
9. │ └─posterior:::is_draws_rvars_like(x)
10. │ └─base::sapply(x, is_rvar)
11. │ └─base::lapply(X = X, FUN = FUN, ...)
12. │ └─posterior (local) FUN(X[[i]], ...)
13. └─methods:::.extendsForS3(`<chr>`)
14. └─methods::extends(Class, maybe = FALSE)
15. └─methods::getClassDef(class1)
16. └─methods:::.requirePackage(package)
── Error ('test-marg-compare.R:2:1'): (code run outside of `test_that()`) ──────
Error in `.requirePackage(package)`: unable to find required package 'rstan'
Backtrace:
▆
1. ├─bayesMeanScale::bayesMargEffF(...) at test-marg-compare.R:2:1
2. │ ├─base::sample(...)
3. │ ├─base::nrow(posterior::as_draws_df(model))
4. │ ├─posterior::as_draws_df(model)
5. │ └─posterior:::as_draws_df.default(model)
6. │ ├─posterior::as_draws(x)
7. │ └─posterior:::as_draws.default(x)
8. │ └─posterior:::closest_draws_format(x)
9. │ └─posterior:::is_draws_rvars_like(x)
10. │ └─base::sapply(x, is_rvar)
11. │ └─base::lapply(X = X, FUN = FUN, ...)
12. │ └─posterior (local) FUN(X[[i]], ...)
13. └─methods:::.extendsForS3(`<chr>`)
14. └─methods::extends(Class, maybe = FALSE)
15. └─methods::getClassDef(class1)
16. └─methods:::.requirePackage(package)
── Failure ('test-marg-effects.R:5:3'): make sure all configurations of bayesMargEffF run without error ──
Expected `bayesMargEffF(...)` to run without any errors.
i Actually got a <simpleError> with text:
unable to find required package 'rstan'
── Failure ('test-marg-effects.R:6:3'): make sure all configurations of bayesMargEffF run without error ──
Expected `bayesMargEffF(...)` to run without any errors.
i Actually got a <simpleError> with text:
unable to find required package 'rstan'
── Failure ('test-marg-effects.R:7:3'): make sure all configurations of bayesMargEffF run without error ──
Expected `bayesMargEffF(...)` to run without any errors.
i Actually got a <simpleError> with text:
unable to find required package 'rstan'
── Failure ('test-marg-effects.R:8:3'): make sure all configurations of bayesMargEffF run without error ──
Expected `bayesMargEffF(...)` to run without any errors.
i Actually got a <simpleError> with text:
unable to find required package 'rstan'
── Failure ('test-marg-effects.R:9:3'): make sure all configurations of bayesMargEffF run without error ──
Expected `bayesMargEffF(...)` to run without any errors.
i Actually got a <simpleError> with text:
unable to find required package 'rstan'
── Failure ('test-marg-effects.R:15:3'): make sure all configurations of bayesMargEffF run without warning ──
Expected `bayesMargEffF(...)` to run without any warnings.
i Actually got a <simpleWarning> with text:
there is no package called 'rstan'
── Failure ('test-marg-effects.R:16:3'): make sure all configurations of bayesMargEffF run without warning ──
Expected `bayesMargEffF(...)` to run without any warnings.
i Actually got a <simpleWarning> with text:
there is no package called 'rstan'
── Failure ('test-marg-effects.R:17:3'): make sure all configurations of bayesMargEffF run without warning ──
Expected `bayesMargEffF(...)` to run without any warnings.
i Actually got a <simpleWarning> with text:
there is no package called 'rstan'
── Failure ('test-marg-effects.R:18:3'): make sure all configurations of bayesMargEffF run without warning ──
Expected `bayesMargEffF(...)` to run without any warnings.
i Actually got a <simpleWarning> with text:
there is no package called 'rstan'
── Failure ('test-marg-effects.R:19:3'): make sure all configurations of bayesMargEffF run without warning ──
Expected `bayesMargEffF(...)` to run without any warnings.
i Actually got a <simpleWarning> with text:
there is no package called 'rstan'
── Error ('test-marg-effects.R:25:1'): (code run outside of `test_that()`) ─────
Error in `.requirePackage(package)`: unable to find required package 'rstan'
Backtrace:
▆
1. ├─... %>% subset(., select = c(mean)) at test-marg-effects.R:25:1
2. ├─base::subset(., select = c(mean))
3. ├─bayesMeanScale::bayesMargEffF(...)
4. │ ├─base::sample(...)
5. │ ├─base::nrow(posterior::as_draws_df(model))
6. │ ├─posterior::as_draws_df(model)
7. │ └─posterior:::as_draws_df.default(model)
8. │ ├─posterior::as_draws(x)
9. │ └─posterior:::as_draws.default(x)
10. │ └─posterior:::closest_draws_format(x)
11. │ └─posterior:::is_draws_rvars_like(x)
12. │ └─base::sapply(x, is_rvar)
13. │ └─base::lapply(X = X, FUN = FUN, ...)
14. │ └─posterior (local) FUN(X[[i]], ...)
15. └─methods:::.extendsForS3(`<chr>`)
16. └─methods::extends(Class, maybe = FALSE)
17. └─methods::getClassDef(class1)
18. └─methods:::.requirePackage(package)
[ FAIL 64 | WARN 34 | SKIP 0 | PASS 85 ]
Error: Test failures
Execution halted
Flavor: r-release-linux-x86_64
Version: 0.1.1
Check: re-building of vignette outputs
Result: ERROR
Error(s) in re-building vignettes:
...
--- re-building ‘introduction.Rmd’ using rmarkdown
Quitting from lines at lines 43-46 [unnamed-chunk-2] (introduction.Rmd)
Error: processing vignette 'introduction.Rmd' failed with diagnostics:
there is no package called 'dplyr'
--- failed re-building ‘introduction.Rmd’
SUMMARY: processing the following file failed:
‘introduction.Rmd’
Error: Vignette re-building failed.
Execution halted
Flavor: r-release-linux-x86_64
Version: 0.1.1
Check: whether package can be installed
Result: WARN
Found the following significant warnings:
Warning: namespace 'rstanarm' is not available and has been replaced
Flavor: r-oldrel-windows-x86_64
Version: 0.1.1
Check: tests
Result: ERROR
Running 'testthat.R' [15s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
> # This file is part of the standard setup for testthat.
> # It is recommended that you do not modify it.
> #
> # Where should you do additional test configuration?
> # Learn more about the roles of various files in:
> # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
> # * https://testthat.r-lib.org/articles/special-files.html
>
> library(testthat)
> library(bayesMeanScale)
>
> test_check("bayesMeanScale")
[ FAIL 38 | WARN 0 | SKIP 0 | PASS 55 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-bayes-count-marg-effects.R:5:3'): make sure all configurations of bayesCountMargEffF run without error ──
Expected `bayesCountMargEffF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-bayes-count-marg-effects.R:6:3'): make sure all configurations of bayesCountMargEffF run without error ──
Expected `bayesCountMargEffF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-bayes-count-marg-effects.R:7:3'): make sure all configurations of bayesCountMargEffF run without error ──
Expected `bayesCountMargEffF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-bayes-count-marg-effects.R:8:3'): make sure all configurations of bayesCountMargEffF run without error ──
Expected `bayesCountMargEffF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-bayes-count-marg-effects.R:9:3'): make sure all configurations of bayesCountMargEffF run without error ──
Expected `bayesCountMargEffF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-bayes-count-marg-effects.R:11:3'): make sure all configurations of bayesCountMargEffF run without error ──
Expected `bayesCountMargEffF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-bayes-count-marg-effects.R:12:3'): make sure all configurations of bayesCountMargEffF run without error ──
Expected `bayesCountMargEffF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-bayes-count-marg-effects.R:13:3'): make sure all configurations of bayesCountMargEffF run without error ──
Expected `bayesCountMargEffF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-bayes-count-marg-effects.R:14:3'): make sure all configurations of bayesCountMargEffF run without error ──
Expected `bayesCountMargEffF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-bayes-count-marg-effects.R:15:3'): make sure all configurations of bayesCountMargEffF run without error ──
Expected `bayesCountMargEffF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Error ('test-bayes-count-marg-effects.R:21:3'): make sure all configurations of bayesCountMargEffF run without warning ──
Error: All variables in all chains must have the same length.
Backtrace:
▆
1. ├─testthat::expect_no_warning(...) at test-bayes-count-marg-effects.R:21:3
2. │ └─testthat:::expect_no_(...)
3. │ └─testthat:::quasi_capture(enquo(object), NULL, capture)
4. │ ├─testthat (local) .capture(...)
5. │ │ └─rlang::try_fetch(...)
6. │ │ └─base::withCallingHandlers(...)
7. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
8. └─bayesMeanScale::bayesCountMargEffF(...)
9. ├─base::sample(...)
10. ├─base::nrow(posterior::as_draws_df(model))
11. ├─posterior::as_draws_df(model)
12. └─posterior:::as_draws_df.default(model)
13. ├─posterior::as_draws(x)
14. └─posterior:::as_draws.default(x)
15. └─posterior (local) fun(x, ...)
16. └─posterior:::stop_no_call("All variables in all chains must have the same length.")
── Failure ('test-bayes-count-preds.R:5:3'): make sure all configurations of bayesCountPredsF run without error ──
Expected `bayesCountPredsF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-bayes-count-preds.R:6:3'): make sure all configurations of bayesCountPredsF run without error ──
Expected `bayesCountPredsF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-bayes-count-preds.R:7:3'): make sure all configurations of bayesCountPredsF run without error ──
Expected `bayesCountPredsF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-bayes-count-preds.R:8:3'): make sure all configurations of bayesCountPredsF run without error ──
Expected `bayesCountPredsF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-bayes-count-preds.R:9:3'): make sure all configurations of bayesCountPredsF run without error ──
Expected `bayesCountPredsF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-bayes-count-preds.R:11:3'): make sure all configurations of bayesCountPredsF run without error ──
Expected `bayesCountPredsF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-bayes-count-preds.R:12:3'): make sure all configurations of bayesCountPredsF run without error ──
Expected `bayesCountPredsF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-bayes-count-preds.R:13:3'): make sure all configurations of bayesCountPredsF run without error ──
Expected `bayesCountPredsF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-bayes-count-preds.R:14:3'): make sure all configurations of bayesCountPredsF run without error ──
Expected `bayesCountPredsF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-bayes-count-preds.R:15:3'): make sure all configurations of bayesCountPredsF run without error ──
Expected `bayesCountPredsF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Error ('test-bayes-count-preds.R:21:3'): make sure all configurations of bayesCountPredsF run without warning ──
Error: All variables in all chains must have the same length.
Backtrace:
▆
1. ├─testthat::expect_no_warning(...) at test-bayes-count-preds.R:21:3
2. │ └─testthat:::expect_no_(...)
3. │ └─testthat:::quasi_capture(enquo(object), NULL, capture)
4. │ ├─testthat (local) .capture(...)
5. │ │ └─rlang::try_fetch(...)
6. │ │ └─base::withCallingHandlers(...)
7. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
8. └─bayesMeanScale::bayesCountPredsF(...)
9. ├─base::sample(...)
10. ├─base::nrow(posterior::as_draws_df(model))
11. ├─posterior::as_draws_df(model)
12. └─posterior:::as_draws_df.default(model)
13. ├─posterior::as_draws(x)
14. └─posterior:::as_draws.default(x)
15. └─posterior (local) fun(x, ...)
16. └─posterior:::stop_no_call("All variables in all chains must have the same length.")
── Error ('test-bayes-count-preds.R:37:1'): (code run outside of `test_that()`) ──
Error: All variables in all chains must have the same length.
Backtrace:
▆
1. ├─... %>% subset(., select = c(mean)) at test-bayes-count-preds.R:37:1
2. ├─base::subset(., select = c(mean))
3. └─bayesMeanScale::bayesCountPredsF(...)
4. ├─base::sample(...)
5. ├─base::nrow(posterior::as_draws_df(model))
6. ├─posterior::as_draws_df(model)
7. └─posterior:::as_draws_df.default(model)
8. ├─posterior::as_draws(x)
9. └─posterior:::as_draws.default(x)
10. └─posterior (local) fun(x, ...)
11. └─posterior:::stop_no_call("All variables in all chains must have the same length.")
── Failure ('test-bayes-preds.R:5:3'): make sure all configurations of bayesPredsF run without error ──
Expected `bayesPredsF(logitModel2, at = list(educ = c(0, 12)), n_draws = 500)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-bayes-preds.R:6:3'): make sure all configurations of bayesPredsF run without error ──
Expected `bayesPredsF(logitModel, at = list(educ = c(0, 12)), n_draws = 500)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-bayes-preds.R:7:3'): make sure all configurations of bayesPredsF run without error ──
Expected `bayesPredsF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-bayes-preds.R:8:3'): make sure all configurations of bayesPredsF run without error ──
Expected `bayesPredsF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-bayes-preds.R:9:3'): make sure all configurations of bayesPredsF run without error ──
Expected `bayesPredsF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Error ('test-bayes-preds.R:15:3'): make sure all configurations of bayesPredsF run without warning ──
Error: All variables in all chains must have the same length.
Backtrace:
▆
1. ├─testthat::expect_no_warning(...) at test-bayes-preds.R:15:3
2. │ └─testthat:::expect_no_(...)
3. │ └─testthat:::quasi_capture(enquo(object), NULL, capture)
4. │ ├─testthat (local) .capture(...)
5. │ │ └─rlang::try_fetch(...)
6. │ │ └─base::withCallingHandlers(...)
7. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
8. └─bayesMeanScale::bayesPredsF(...)
9. ├─base::sample(...)
10. ├─base::nrow(posterior::as_draws_df(model))
11. ├─posterior::as_draws_df(model)
12. └─posterior:::as_draws_df.default(model)
13. ├─posterior::as_draws(x)
14. └─posterior:::as_draws.default(x)
15. └─posterior (local) fun(x, ...)
16. └─posterior:::stop_no_call("All variables in all chains must have the same length.")
── Error ('test-marg-compare-error-check.R:3:1'): (code run outside of `test_that()`) ──
Error: All variables in all chains must have the same length.
Backtrace:
▆
1. └─bayesMeanScale::bayesMargEffF(...) at test-marg-compare-error-check.R:3:1
2. ├─base::sample(...)
3. ├─base::nrow(posterior::as_draws_df(model))
4. ├─posterior::as_draws_df(model)
5. └─posterior:::as_draws_df.default(model)
6. ├─posterior::as_draws(x)
7. └─posterior:::as_draws.default(x)
8. └─posterior (local) fun(x, ...)
9. └─posterior:::stop_no_call("All variables in all chains must have the same length.")
── Error ('test-marg-compare.R:2:1'): (code run outside of `test_that()`) ──────
Error: All variables in all chains must have the same length.
Backtrace:
▆
1. └─bayesMeanScale::bayesMargEffF(...) at test-marg-compare.R:2:1
2. ├─base::sample(...)
3. ├─base::nrow(posterior::as_draws_df(model))
4. ├─posterior::as_draws_df(model)
5. └─posterior:::as_draws_df.default(model)
6. ├─posterior::as_draws(x)
7. └─posterior:::as_draws.default(x)
8. └─posterior (local) fun(x, ...)
9. └─posterior:::stop_no_call("All variables in all chains must have the same length.")
── Failure ('test-marg-effects.R:5:3'): make sure all configurations of bayesMargEffF run without error ──
Expected `bayesMargEffF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-marg-effects.R:6:3'): make sure all configurations of bayesMargEffF run without error ──
Expected `bayesMargEffF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-marg-effects.R:7:3'): make sure all configurations of bayesMargEffF run without error ──
Expected `bayesMargEffF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-marg-effects.R:8:3'): make sure all configurations of bayesMargEffF run without error ──
Expected `bayesMargEffF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Failure ('test-marg-effects.R:9:3'): make sure all configurations of bayesMargEffF run without error ──
Expected `bayesMargEffF(...)` to run without any errors.
i Actually got a <simpleError> with text:
All variables in all chains must have the same length.
── Error ('test-marg-effects.R:15:3'): make sure all configurations of bayesMargEffF run without warning ──
Error: All variables in all chains must have the same length.
Backtrace:
▆
1. ├─testthat::expect_no_warning(...) at test-marg-effects.R:15:3
2. │ └─testthat:::expect_no_(...)
3. │ └─testthat:::quasi_capture(enquo(object), NULL, capture)
4. │ ├─testthat (local) .capture(...)
5. │ │ └─rlang::try_fetch(...)
6. │ │ └─base::withCallingHandlers(...)
7. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
8. └─bayesMeanScale::bayesMargEffF(...)
9. ├─base::sample(...)
10. ├─base::nrow(posterior::as_draws_df(model))
11. ├─posterior::as_draws_df(model)
12. └─posterior:::as_draws_df.default(model)
13. ├─posterior::as_draws(x)
14. └─posterior:::as_draws.default(x)
15. └─posterior (local) fun(x, ...)
16. └─posterior:::stop_no_call("All variables in all chains must have the same length.")
── Error ('test-marg-effects.R:25:1'): (code run outside of `test_that()`) ─────
Error: All variables in all chains must have the same length.
Backtrace:
▆
1. ├─... %>% subset(., select = c(mean)) at test-marg-effects.R:25:1
2. ├─base::subset(., select = c(mean))
3. └─bayesMeanScale::bayesMargEffF(...)
4. ├─base::sample(...)
5. ├─base::nrow(posterior::as_draws_df(model))
6. ├─posterior::as_draws_df(model)
7. └─posterior:::as_draws_df.default(model)
8. ├─posterior::as_draws(x)
9. └─posterior:::as_draws.default(x)
10. └─posterior (local) fun(x, ...)
11. └─posterior:::stop_no_call("All variables in all chains must have the same length.")
[ FAIL 38 | WARN 0 | SKIP 0 | PASS 55 ]
Error: Test failures
Execution halted
Flavor: r-oldrel-windows-x86_64