Last updated on 2026-11-20 16:58:43 CET.
| Flavor | Version | Tinstall | Tcheck | Ttotal | Status | Flags |
|---|---|---|---|---|---|---|
| r-devel-linux-x86_64-debian-clang | 0.1.0 | 4.48 | 192.05 | 196.53 | OK | |
| r-devel-linux-x86_64-debian-gcc | 0.1.0 | 3.95 | 52.14 | 56.09 | ERROR | |
| r-devel-linux-x86_64-fedora-clang | 0.1.0 | 55.34 | ERROR | |||
| r-devel-linux-x86_64-fedora-gcc | 0.1.0 | 60.83 | ERROR | |||
| r-devel-windows-x86_64 | 0.1.0 | 9.00 | 185.00 | 194.00 | OK | |
| r-patched-linux-x86_64 | 0.1.0 | 5.19 | 179.04 | 184.23 | OK | |
| r-release-linux-x86_64 | 0.1.0 | 4.91 | 177.48 | 182.39 | OK | |
| r-release-macos-arm64 | 0.1.0 | 1.00 | 44.00 | 45.00 | OK | |
| r-release-macos-x86_64 | 0.1.0 | 4.00 | 190.00 | 194.00 | OK | |
| r-release-windows-x86_64 | 0.1.0 | 7.00 | 184.00 | 191.00 | OK | |
| r-oldrel-macos-arm64 | 0.1.0 | 1.00 | 47.00 | 48.00 | OK | |
| r-oldrel-macos-x86_64 | 0.1.0 | 5.00 | 371.00 | 376.00 | OK | |
| r-oldrel-windows-x86_64 | 0.1.0 | 10.00 | 247.00 | 257.00 | OK |
Version: 0.1.0
Check: examples
Result: ERROR
Running examples in ‘dcmstan-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: create_profiles
> ### Title: Generate mastery profiles
> ### Aliases: create_profiles
>
> ### ** Examples
>
> create_profiles(3L)
# A tibble: 8 × 3
att1 att2 att3
<int> <int> <int>
1 0 0 0
2 1 0 0
3 0 1 0
4 0 0 1
5 1 1 0
6 1 0 1
7 0 1 1
8 1 1 1
>
> create_profiles(5)
# A tibble: 32 × 5
att1 att2 att3 att4 att5
<int> <int> <int> <int> <int>
1 0 0 0 0 0
2 1 0 0 0 0
3 0 1 0 0 0
4 0 0 1 0 0
5 0 0 0 1 0
6 0 0 0 0 1
7 1 1 0 0 0
8 1 0 1 0 0
9 1 0 0 1 0
10 1 0 0 0 1
# ℹ 22 more rows
>
> create_profiles(unconstrained(), attributes = c("att1", "att2"))
Error: @model is read-only
Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc
Version: 0.1.0
Check: tests
Result: ERROR
Running ‘spelling.R’ [0s/0s]
Running ‘testthat.R’ [12s/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(dcmstan)
>
> test_check("dcmstan")
Saving _problems/test-meas-dina-dino-6.R
Saving _problems/test-meas-dina-dino-71.R
Saving _problems/test-meas-lcdm-crum-6.R
Saving _problems/test-meas-lcdm-crum-62.R
Saving _problems/test-meas-lcdm-crum-110.R
Saving _problems/test-meas-lcdm-crum-207.R
Saving _problems/test-meas-ncrum-6.R
Saving _problems/test-meas-ncrum-49.R
Saving _problems/test-meas-nida-6.R
Saving _problems/test-meas-nida-49.R
Saving _problems/test-meas-nido-6.R
Saving _problems/test-meas-nido-38.R
Saving _problems/test-model-options-5.R
Saving _problems/test-model-options-24.R
Saving _problems/test-utils-hierarchy-147.R
Saving _problems/test-utils-hierarchy-148.R
Saving _problems/test-utils-hierarchy-149.R
Saving _problems/test-zzz-class-model-components-5.R
Saving _problems/test-zzz-class-model-components-43.R
Saving _problems/test-zzz-class-model-components-90.R
Saving _problems/test-zzz-class-model-priors-64.R
Saving _problems/test-zzz-class-model-specification-28.R
Saving _problems/test-zzz-class-model-specification-117.R
Saving _problems/test-zzz-class-model-specification-169.R
Saving _problems/test-zzz-methods-create-profiles-62.R
Saving _problems/test-zzz-methods-create-profiles-76.R
Saving _problems/test-zzz-methods-create-profiles-95.R
Saving _problems/test-zzz-methods-get-parameters-10.R
Saving _problems/test-zzz-methods-get-parameters-99.R
Saving _problems/test-zzz-methods-get-parameters-127.R
Saving _problems/test-zzz-methods-get-parameters-173.R
Saving _problems/test-zzz-methods-get-parameters-255.R
Saving _problems/test-zzz-methods-get-parameters-328.R
Saving _problems/test-zzz-methods-get-parameters-660.R
Saving _problems/test-zzz-methods-get-parameters-786.R
Saving _problems/test-zzz-methods-get-parameters-822.R
Saving _problems/test-zzz-methods-get-parameters-911.R
Saving _problems/test-zzz-methods-get-parameters-1025.R
Saving _problems/test-zzz-methods-get-parameters-1061.R
Saving _problems/test-zzz-methods-get-parameters-1147.R
Saving _problems/test-zzz-methods-get-parameters-1265.R
Saving _problems/test-zzz-methods-get-parameters-1294.R
Saving _problems/test-zzz-methods-get-parameters-1352.R
Saving _problems/test-zzz-methods-get-parameters-1427.R
Saving _problems/test-zzz-methods-get-parameters-1453.R
Saving _problems/test-zzz-methods-get-parameters-1686.R
Saving _problems/test-zzz-methods-get-parameters-1709.R
Saving _problems/test-zzz-methods-stan-data-21.R
Saving _problems/test-zzz-methods-stan-data-39.R
Saving _problems/test-zzz-methods-stan-data-90.R
Saving _problems/test-zzz-methods-stan-data-111.R
Saving _problems/test-zzz-methods-stan-data-144.R
Saving _problems/test-zzz-methods-stan-data-186.R
[ FAIL 53 | WARN 0 | SKIP 4 | PASS 114 ]
══ Skipped tests (4) ═══════════════════════════════════════════════════════════
• No MCMC on CRAN (1): 'test-zzz-methods-stan-code.R:2:3'
• On CRAN (3): 'test-gqs-default.R:1:1', 'test-model-options.R:28:1',
'test-zzz-class-model-priors.R:278:1'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-meas-dina-dino.R:2:3'): dina script works ──────────────────────
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::dcm_specify(...) at test-meas-dina-dino.R:2:3
2. │ └─S7::check_is_S7(measurement_model, measurement)
3. │ └─S7::S7_inherits(x, class)
4. │ └─S7:::class_inherits(x, class)
5. ├─dcmstan::dina()
6. │ └─dcmstan:::DINA(model = "dina")
7. │ └─S7::new_object(...)
8. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
9. └─dcmstan (local) `<DINA>@model`(`<dc::DINA>`, "dina")
── Error ('test-meas-dina-dino.R:67:3'): dino script works ─────────────────────
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::dcm_specify(...) at test-meas-dina-dino.R:67:3
2. │ └─S7::check_is_S7(measurement_model, measurement)
3. │ └─S7::S7_inherits(x, class)
4. │ └─S7:::class_inherits(x, class)
5. ├─dcmstan::dino()
6. │ └─dcmstan:::DINO(model = "dino")
7. │ └─S7::new_object(...)
8. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
9. └─dcmstan (local) `<DINO>@model`(`<dc::DINO>`, "dino")
── Error ('test-meas-lcdm-crum.R:2:3'): lcdm script works ──────────────────────
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::dcm_specify(...) at test-meas-lcdm-crum.R:2:3
2. │ └─S7::check_is_S7(measurement_model, measurement)
3. │ └─S7::S7_inherits(x, class)
4. │ └─S7:::class_inherits(x, class)
5. ├─dcmstan::lcdm()
6. │ └─dcmstan:::LCDM(model = "lcdm", list(max_interaction = max_interaction))
7. │ └─S7::new_object(...)
8. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
9. └─dcmstan (local) `<LCDM>@model`(`<dc::LCDM>`, "lcdm")
── Error ('test-meas-lcdm-crum.R:58:3'): crum script works ─────────────────────
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::dcm_specify(...) at test-meas-lcdm-crum.R:58:3
2. │ └─S7::check_is_S7(measurement_model, measurement)
3. │ └─S7::S7_inherits(x, class)
4. │ └─S7:::class_inherits(x, class)
5. ├─dcmstan::crum()
6. │ └─dcmstan:::CRUM(model = "crum")
7. │ └─S7::new_object(...)
8. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
9. └─dcmstan (local) `<CRUM>@model`(`<dc::CRUM>`, "crum")
── Error ('test-meas-lcdm-crum.R:103:3'): lcdm with hierarchy works ────────────
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::dcm_specify(...) at test-meas-lcdm-crum.R:103:3
2. │ └─S7::check_is_S7(measurement_model, measurement)
3. │ └─S7::S7_inherits(x, class)
4. │ └─S7:::class_inherits(x, class)
5. ├─dcmstan::lcdm()
6. │ └─dcmstan:::LCDM(model = "lcdm", list(max_interaction = max_interaction))
7. │ └─S7::new_object(...)
8. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
9. └─dcmstan (local) `<LCDM>@model`(`<dc::LCDM>`, "lcdm")
── Error ('test-meas-lcdm-crum.R:200:3'): crum with hierarchy works ────────────
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::dcm_specify(...) at test-meas-lcdm-crum.R:200:3
2. │ └─S7::check_is_S7(measurement_model, measurement)
3. │ └─S7::S7_inherits(x, class)
4. │ └─S7:::class_inherits(x, class)
5. ├─dcmstan::crum()
6. │ └─dcmstan:::CRUM(model = "crum")
7. │ └─S7::new_object(...)
8. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
9. └─dcmstan (local) `<CRUM>@model`(`<dc::CRUM>`, "crum")
── Error ('test-meas-ncrum.R:2:3'): ncrum script works ─────────────────────────
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::dcm_specify(...) at test-meas-ncrum.R:2:3
2. │ └─S7::check_is_S7(measurement_model, measurement)
3. │ └─S7::S7_inherits(x, class)
4. │ └─S7:::class_inherits(x, class)
5. ├─dcmstan::ncrum()
6. │ └─dcmstan:::NCRUM(model = "ncrum")
7. │ └─S7::new_object(...)
8. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
9. └─dcmstan (local) `<NCRUM>@model`(`<d::NCRUM>`, "ncrum")
── Error ('test-meas-ncrum.R:42:3'): ncrum with hierarchy works ────────────────
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::dcm_specify(...) at test-meas-ncrum.R:42:3
2. │ └─S7::check_is_S7(measurement_model, measurement)
3. │ └─S7::S7_inherits(x, class)
4. │ └─S7:::class_inherits(x, class)
5. ├─dcmstan::ncrum()
6. │ └─dcmstan:::NCRUM(model = "ncrum")
7. │ └─S7::new_object(...)
8. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
9. └─dcmstan (local) `<NCRUM>@model`(`<d::NCRUM>`, "ncrum")
── Error ('test-meas-nida.R:2:3'): nida script works ───────────────────────────
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::dcm_specify(...) at test-meas-nida.R:2:3
2. │ └─S7::check_is_S7(measurement_model, measurement)
3. │ └─S7::S7_inherits(x, class)
4. │ └─S7:::class_inherits(x, class)
5. ├─dcmstan::nida()
6. │ └─dcmstan:::NIDA(model = "nida")
7. │ └─S7::new_object(...)
8. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
9. └─dcmstan (local) `<NIDA>@model`(`<dc::NIDA>`, "nida")
── Error ('test-meas-nida.R:42:3'): nida with hierarchy works ──────────────────
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::dcm_specify(...) at test-meas-nida.R:42:3
2. │ └─S7::check_is_S7(measurement_model, measurement)
3. │ └─S7::S7_inherits(x, class)
4. │ └─S7:::class_inherits(x, class)
5. ├─dcmstan::nida()
6. │ └─dcmstan:::NIDA(model = "nida")
7. │ └─S7::new_object(...)
8. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
9. └─dcmstan (local) `<NIDA>@model`(`<dc::NIDA>`, "nida")
── Error ('test-meas-nido.R:2:3'): nido script works ───────────────────────────
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::dcm_specify(...) at test-meas-nido.R:2:3
2. │ └─S7::check_is_S7(measurement_model, measurement)
3. │ └─S7::S7_inherits(x, class)
4. │ └─S7:::class_inherits(x, class)
5. ├─dcmstan::nido()
6. │ └─dcmstan:::NIDO(model = "nido")
7. │ └─S7::new_object(...)
8. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
9. └─dcmstan (local) `<NIDO>@model`(`<dc::NIDO>`, "nido")
── Error ('test-meas-nido.R:31:3'): nido with hierarchy works ──────────────────
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::dcm_specify(...) at test-meas-nido.R:31:3
2. │ └─S7::check_is_S7(measurement_model, measurement)
3. │ └─S7::S7_inherits(x, class)
4. │ └─S7:::class_inherits(x, class)
5. ├─dcmstan::nido()
6. │ └─dcmstan:::NIDO(model = "nido")
7. │ └─S7::new_object(...)
8. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
9. └─dcmstan (local) `<NIDO>@model`(`<dc::NIDO>`, "nido")
── Error ('test-model-options.R:5:5'): measurement models have functions ───────
Error: @model is read-only
Backtrace:
▆
1. ├─S7::check_is_S7(do.call(m_choice[i], args = list()), measurement) at test-model-options.R:5:5
2. │ └─S7::S7_inherits(x, class)
3. │ └─S7:::class_inherits(x, class)
4. ├─base::do.call(m_choice[i], args = list())
5. ├─dcmstan::lcdm()
6. │ └─dcmstan:::LCDM(model = "lcdm", list(max_interaction = max_interaction))
7. │ └─S7::new_object(...)
8. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
9. └─dcmstan (local) `<LCDM>@model`(`<dc::LCDM>`, "lcdm")
── Error ('test-model-options.R:24:5'): structural models have functions ───────
Error: @model is read-only
Backtrace:
▆
1. ├─S7::check_is_S7(do.call(s_choice[i], args = list()), structural) at test-model-options.R:24:5
2. │ └─S7::S7_inherits(x, class)
3. │ └─S7:::class_inherits(x, class)
4. ├─base::do.call(s_choice[i], args = list())
5. ├─dcmstan::unconstrained()
6. │ └─dcmstan:::UNCONSTRAINED(model = "unconstrained")
7. │ └─S7::new_object(...)
8. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
9. └─dcmstan (local) `<UNCONSTRAINED>@model`(`<d::UNCON>`, "unconstrained")
── Failure ('test-utils-hierarchy.R:147:3'): check hierarchy names in specification ──
Expected `err` to inherit from "rlang_error".
Actual class: "simpleError"/"error"/"condition".
── Failure ('test-utils-hierarchy.R:148:3'): check hierarchy names in specification ──
Expected `err$message` to match regexp "only include attributes".
Actual text:
x | @model is read-only
── Error ('test-utils-hierarchy.R:149:3'): check hierarchy names in specification ──
Error in `expect_match(err$footer, "lexcial")`: `object` must be a character vector, not `NULL`.
Backtrace:
▆
1. └─testthat::expect_match(object = err$footer) at test-utils-hierarchy.R:149:3
2. └─testthat:::check_character(object)
3. └─testthat:::stop_input_type(...)
4. └─rlang::abort(message, ..., call = call, arg = arg)
── Error ('test-zzz-class-model-components.R:5:3'): measurement class works ────
Error: @model is read-only
Backtrace:
▆
1. ├─testthat::expect_true(S7::S7_inherits(lcdm(), measurement)) at test-zzz-class-model-components.R:5:3
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. ├─S7::S7_inherits(lcdm(), measurement)
5. │ └─S7:::class_inherits(x, class)
6. ├─dcmstan::lcdm()
7. │ └─dcmstan:::LCDM(model = "lcdm", list(max_interaction = max_interaction))
8. │ └─S7::new_object(...)
9. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
10. └─dcmstan (local) `<LCDM>@model`(`<dc::LCDM>`, "lcdm")
── Error ('test-zzz-class-model-components.R:43:3'): structural class works ────
Error: @model is read-only
Backtrace:
▆
1. ├─testthat::expect_true(S7::S7_inherits(unconstrained(), structural)) at test-zzz-class-model-components.R:43:3
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. ├─S7::S7_inherits(unconstrained(), structural)
5. │ └─S7:::class_inherits(x, class)
6. ├─dcmstan::unconstrained()
7. │ └─dcmstan:::UNCONSTRAINED(model = "unconstrained")
8. │ └─S7::new_object(...)
9. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
10. └─dcmstan (local) `<UNCONSTRAINED>@model`(`<d::UNCON>`, "unconstrained")
── Error ('test-zzz-class-model-components.R:90:3'): model_property cannot be overwritten ──
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::lcdm() at test-zzz-class-model-components.R:90:3
2. │ └─dcmstan:::LCDM(model = "lcdm", list(max_interaction = max_interaction))
3. │ └─S7::new_object(...)
4. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
5. └─dcmstan (local) `<LCDM>@model`(`<dc::LCDM>`, "lcdm")
── Error ('test-zzz-class-model-priors.R:61:3'): specify only measurement or structural ──
Error: @model is read-only
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test-zzz-class-model-priors.R:61:3
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. ├─dcmstan::default_dcm_priors(measurement_model = lcdm())
5. ├─dcmstan::lcdm()
6. │ └─dcmstan:::LCDM(model = "lcdm", list(max_interaction = max_interaction))
7. │ └─S7::new_object(...)
8. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
9. └─dcmstan (local) `<LCDM>@model`(`<dc::LCDM>`, "lcdm")
── Error ('test-zzz-class-model-specification.R:21:3'): dcm_specify errors when expected ──
Error: @model is read-only
Backtrace:
▆
1. ├─testthat::expect_error(...) at test-zzz-class-model-specification.R:21:3
2. │ └─testthat:::expect_condition_matching_(...)
3. │ └─testthat:::quasi_capture(...)
4. │ ├─testthat (local) .capture(...)
5. │ │ └─base::withCallingHandlers(...)
6. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
7. ├─dcmstan::dcm_specify(...)
8. │ └─S7::check_is_S7(measurement_model, measurement)
9. │ └─S7::S7_inherits(x, class)
10. │ └─S7:::class_inherits(x, class)
11. ├─dcmstan::unconstrained()
12. │ └─dcmstan:::UNCONSTRAINED(model = "unconstrained")
13. │ └─S7::new_object(...)
14. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
15. └─dcmstan (local) `<UNCONSTRAINED>@model`(`<d::UNCON>`, "unconstrained")
── Error ('test-zzz-class-model-specification.R:112:3'): dcm_specification works ──
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::dcm_specify(...) at test-zzz-class-model-specification.R:112:3
2. │ └─S7::check_is_S7(measurement_model, measurement)
3. │ └─S7::S7_inherits(x, class)
4. │ └─S7:::class_inherits(x, class)
5. ├─dcmstan::lcdm(max_interaction = 1)
6. │ └─dcmstan:::LCDM(model = "lcdm", list(max_interaction = max_interaction))
7. │ └─S7::new_object(...)
8. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
9. └─dcmstan (local) `<LCDM>@model`(`<dc::LCDM>`, "lcdm")
── Error ('test-zzz-class-model-specification.R:164:3'): printing works ────────
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::dcm_specify(...) at test-zzz-class-model-specification.R:164:3
2. │ └─S7::check_is_S7(measurement_model, measurement)
3. │ └─S7::S7_inherits(x, class)
4. │ └─S7:::class_inherits(x, class)
5. ├─dcmstan::lcdm(max_interaction = 1)
6. │ └─dcmstan:::LCDM(model = "lcdm", list(max_interaction = max_interaction))
7. │ └─S7::new_object(...)
8. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
9. └─dcmstan (local) `<LCDM>@model`(`<dc::LCDM>`, "lcdm")
── Error ('test-zzz-methods-create-profiles.R:59:3'): stuctural method works ───
Error: @model is read-only
Backtrace:
▆
1. ├─testthat::expect_identical(...) at test-zzz-methods-create-profiles.R:59:3
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. ├─dcmstan::create_profiles(...)
5. │ └─S7::S7_dispatch()
6. ├─dcmstan::unconstrained()
7. │ └─dcmstan:::UNCONSTRAINED(model = "unconstrained")
8. │ └─S7::new_object(...)
9. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
10. └─dcmstan (local) `<UNCONSTRAINED>@model`(`<d::UNCON>`, "unconstrained")
── Error ('test-zzz-methods-create-profiles.R:70:3'): HDCM method works ────────
Error: @model is read-only
Backtrace:
▆
1. ├─testthat::expect_identical(...) at test-zzz-methods-create-profiles.R:70:3
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. ├─dcmstan::create_profiles(...)
5. │ └─S7::S7_dispatch()
6. ├─dcmstan::hdcm(hierarchy = "att3 -> att2 -> att1")
7. │ └─dcmstan:::HDCM(model = "hdcm", list(hierarchy = hierarchy))
8. │ └─S7::new_object(...)
9. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
10. └─dcmstan (local) `<HDCM>@model`(`<dc::HDCM>`, "hdcm")
── Error ('test-zzz-methods-create-profiles.R:91:3'): dcm_specification method works ──
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::dcm_specify(...) at test-zzz-methods-create-profiles.R:91:3
2. │ ├─S7::check_is_S7(measurement_model, measurement)
3. │ │ └─S7::S7_inherits(x, class)
4. │ │ └─S7:::class_inherits(x, class)
5. │ └─dcmstan::lcdm()
6. │ └─dcmstan:::LCDM(model = "lcdm", list(max_interaction = max_interaction))
7. │ └─S7::new_object(...)
8. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
9. └─dcmstan (local) `<LCDM>@model`(`<dc::LCDM>`, "lcdm")
── Error ('test-zzz-methods-get-parameters.R:10:3'): lcdm parameters work ──────
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::get_parameters(lcdm(), qmatrix = test_qmatrix) at test-zzz-methods-get-parameters.R:10:3
2. │ └─S7::S7_dispatch()
3. ├─dcmstan::lcdm()
4. │ └─dcmstan:::LCDM(model = "lcdm", list(max_interaction = max_interaction))
5. │ └─S7::new_object(...)
6. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
7. └─dcmstan (local) `<LCDM>@model`(`<dc::LCDM>`, "lcdm")
── Error ('test-zzz-methods-get-parameters.R:99:3'): dina parameters work ──────
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::get_parameters(dina(), qmatrix = test_qmatrix) at test-zzz-methods-get-parameters.R:99:3
2. │ └─S7::S7_dispatch()
3. ├─dcmstan::dina()
4. │ └─dcmstan:::DINA(model = "dina")
5. │ └─S7::new_object(...)
6. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
7. └─dcmstan (local) `<DINA>@model`(`<dc::DINA>`, "dina")
── Error ('test-zzz-methods-get-parameters.R:123:3'): dino parameters work ─────
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::get_parameters(dino(), qmatrix = test_qmatrix, identifier = "test_item") at test-zzz-methods-get-parameters.R:123:3
2. │ └─S7::S7_dispatch()
3. ├─dcmstan::dino()
4. │ └─dcmstan:::DINO(model = "dino")
5. │ └─S7::new_object(...)
6. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
7. └─dcmstan (local) `<DINO>@model`(`<dc::DINO>`, "dino")
── Error ('test-zzz-methods-get-parameters.R:169:3'): nida parameters work ─────
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::get_parameters(nida(), qmatrix = test_qmatrix, identifier = "question") at test-zzz-methods-get-parameters.R:169:3
2. │ └─S7::S7_dispatch()
3. ├─dcmstan::nida()
4. │ └─dcmstan:::NIDA(model = "nida")
5. │ └─S7::new_object(...)
6. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
7. └─dcmstan (local) `<NIDA>@model`(`<dc::NIDA>`, "nida")
── Error ('test-zzz-methods-get-parameters.R:251:3'): nido parameters work ─────
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::get_parameters(nido(), qmatrix = test_qmatrix, identifier = "question") at test-zzz-methods-get-parameters.R:251:3
2. │ └─S7::S7_dispatch()
3. ├─dcmstan::nido()
4. │ └─dcmstan:::NIDO(model = "nido")
5. │ └─S7::new_object(...)
6. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
7. └─dcmstan (local) `<NIDO>@model`(`<dc::NIDO>`, "nido")
── Error ('test-zzz-methods-get-parameters.R:324:3'): ncrum parameters work ────
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::get_parameters(ncrum(), qmatrix = test_qmatrix, identifier = "question") at test-zzz-methods-get-parameters.R:324:3
2. │ └─S7::S7_dispatch()
3. ├─dcmstan::ncrum()
4. │ └─dcmstan:::NCRUM(model = "ncrum")
5. │ └─S7::new_object(...)
6. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
7. └─dcmstan (local) `<NCRUM>@model`(`<d::NCRUM>`, "ncrum")
── Error ('test-zzz-methods-get-parameters.R:656:3'): crum parameters work ─────
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::get_parameters(crum(), qmatrix = test_qmatrix, identifier = "question") at test-zzz-methods-get-parameters.R:656:3
2. │ └─S7::S7_dispatch()
3. ├─dcmstan::crum()
4. │ └─dcmstan:::CRUM(model = "crum")
5. │ └─S7::new_object(...)
6. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
7. └─dcmstan (local) `<CRUM>@model`(`<dc::CRUM>`, "crum")
── Error ('test-zzz-methods-get-parameters.R:780:3'): dina parameters (table 6.5) ──
Error: @model is read-only
Backtrace:
▆
1. ├─dplyr::filter(...) at test-zzz-methods-get-parameters.R:780:3
2. ├─dcmstan::get_parameters(...)
3. │ └─S7::S7_dispatch()
4. ├─dcmstan::dcm_specify(...)
5. │ └─S7::check_is_S7(measurement_model, measurement)
6. │ └─S7::S7_inherits(x, class)
7. │ └─S7:::class_inherits(x, class)
8. ├─dcmstan::dina()
9. │ └─dcmstan:::DINA(model = "dina")
10. │ └─S7::new_object(...)
11. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
12. └─dcmstan (local) `<DINA>@model`(`<dc::DINA>`, "dina")
── Error ('test-zzz-methods-get-parameters.R:816:3'): nida parameters (table 6.6) ──
Error: @model is read-only
Backtrace:
▆
1. ├─dplyr::filter(...) at test-zzz-methods-get-parameters.R:816:3
2. ├─dcmstan::get_parameters(...)
3. │ └─S7::S7_dispatch()
4. ├─dcmstan::dcm_specify(...)
5. │ └─S7::check_is_S7(measurement_model, measurement)
6. │ └─S7::S7_inherits(x, class)
7. │ └─S7:::class_inherits(x, class)
8. ├─dcmstan::nida()
9. │ └─dcmstan:::NIDA(model = "nida")
10. │ └─S7::new_object(...)
11. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
12. └─dcmstan (local) `<NIDA>@model`(`<dc::NIDA>`, "nida")
── Error ('test-zzz-methods-get-parameters.R:905:3'): ncrum parameters (table 6.8) ──
Error: @model is read-only
Backtrace:
▆
1. ├─dplyr::filter(...) at test-zzz-methods-get-parameters.R:905:3
2. ├─dcmstan::get_parameters(...)
3. │ └─S7::S7_dispatch()
4. ├─dcmstan::dcm_specify(...)
5. │ └─S7::check_is_S7(measurement_model, measurement)
6. │ └─S7::S7_inherits(x, class)
7. │ └─S7:::class_inherits(x, class)
8. ├─dcmstan::ncrum()
9. │ └─dcmstan:::NCRUM(model = "ncrum")
10. │ └─S7::new_object(...)
11. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
12. └─dcmstan (local) `<NCRUM>@model`(`<d::NCRUM>`, "ncrum")
── Error ('test-zzz-methods-get-parameters.R:1019:3'): dino parameters (table 6.13) ──
Error: @model is read-only
Backtrace:
▆
1. ├─dplyr::filter(...) at test-zzz-methods-get-parameters.R:1019:3
2. ├─dcmstan::get_parameters(...)
3. │ └─S7::S7_dispatch()
4. ├─dcmstan::dcm_specify(...)
5. │ └─S7::check_is_S7(measurement_model, measurement)
6. │ └─S7::S7_inherits(x, class)
7. │ └─S7:::class_inherits(x, class)
8. ├─dcmstan::dino()
9. │ └─dcmstan:::DINO(model = "dino")
10. │ └─S7::new_object(...)
11. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
12. └─dcmstan (local) `<DINO>@model`(`<dc::DINO>`, "dino")
── Error ('test-zzz-methods-get-parameters.R:1055:3'): nido parameters (table 6.15) ──
Error: @model is read-only
Backtrace:
▆
1. ├─dplyr::filter(...) at test-zzz-methods-get-parameters.R:1055:3
2. ├─dcmstan::get_parameters(...)
3. │ └─S7::S7_dispatch()
4. ├─dcmstan::dcm_specify(...)
5. │ └─S7::check_is_S7(measurement_model, measurement)
6. │ └─S7::S7_inherits(x, class)
7. │ └─S7:::class_inherits(x, class)
8. ├─dcmstan::nido()
9. │ └─dcmstan:::NIDO(model = "nido")
10. │ └─S7::new_object(...)
11. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
12. └─dcmstan (local) `<NIDO>@model`(`<dc::NIDO>`, "nido")
── Error ('test-zzz-methods-get-parameters.R:1141:3'): crum parameters (table 6.17) ──
Error: @model is read-only
Backtrace:
▆
1. ├─dplyr::filter(...) at test-zzz-methods-get-parameters.R:1141:3
2. ├─dcmstan::get_parameters(...)
3. │ └─S7::S7_dispatch()
4. ├─dcmstan::dcm_specify(...)
5. │ └─S7::check_is_S7(measurement_model, measurement)
6. │ └─S7::S7_inherits(x, class)
7. │ └─S7:::class_inherits(x, class)
8. ├─dcmstan::crum()
9. │ └─dcmstan:::CRUM(model = "crum")
10. │ └─S7::new_object(...)
11. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
12. └─dcmstan (local) `<CRUM>@model`(`<dc::CRUM>`, "crum")
── Error ('test-zzz-methods-get-parameters.R:1261:3'): unconstrained parameters work ──
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::get_parameters(...) at test-zzz-methods-get-parameters.R:1261:3
2. │ └─S7::S7_dispatch()
3. ├─dcmstan::unconstrained()
4. │ └─dcmstan:::UNCONSTRAINED(model = "unconstrained")
5. │ └─S7::new_object(...)
6. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
7. └─dcmstan (local) `<UNCONSTRAINED>@model`(`<d::UNCON>`, "unconstrained")
── Error ('test-zzz-methods-get-parameters.R:1290:3'): independent parameters work ──
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::get_parameters(...) at test-zzz-methods-get-parameters.R:1290:3
2. │ └─S7::S7_dispatch()
3. ├─dcmstan::independent()
4. │ └─dcmstan:::INDEPENDENT(model = "independent")
5. │ └─S7::new_object(...)
6. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
7. └─dcmstan (local) `<INDEPENDENT>@model`(`<d::INDEP>`, "independent")
── Error ('test-zzz-methods-get-parameters.R:1352:3'): loglinear parameters work ──
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::get_parameters(loglinear(), qmatrix = test_qmatrix) at test-zzz-methods-get-parameters.R:1352:3
2. │ └─S7::S7_dispatch()
3. ├─dcmstan::loglinear()
4. │ └─dcmstan:::LOGLINEAR(model = "loglinear", list(max_interaction = max_interaction))
5. │ └─S7::new_object(...)
6. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
7. └─dcmstan (local) `<LOGLINEAR>@model`(`<d::LOGLI>`, "loglinear")
── Error ('test-zzz-methods-get-parameters.R:1423:3'): hdcm parameters work ────
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::get_parameters(hdcm(), qmatrix = test_qmatrix, identifier = "test_item") at test-zzz-methods-get-parameters.R:1423:3
2. │ └─S7::S7_dispatch()
3. ├─dcmstan::hdcm()
4. │ └─dcmstan:::HDCM(model = "hdcm", list(hierarchy = hierarchy))
5. │ └─S7::new_object(...)
6. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
7. └─dcmstan (local) `<HDCM>@model`(`<dc::HDCM>`, "hdcm")
── Error ('test-zzz-methods-get-parameters.R:1444:3'): bayesian network parameters work ──
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::get_parameters(...) at test-zzz-methods-get-parameters.R:1444:3
2. │ └─S7::S7_dispatch()
3. ├─dcmstan::bayesnet("appropriateness -> multiplicative_comparison\n appropriateness -> partitioning_iterating\n multiplicative_comparison -> referent_units\n partitioning_iterating -> referent_units")
4. │ └─dcmstan:::BAYESNET(model = "bayesnet", list(hierarchy = hierarchy))
5. │ └─S7::new_object(...)
6. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
7. └─dcmstan (local) `<BAYESNET>@model`(`<d::BAYES>`, "bayesnet")
── Error ('test-zzz-methods-get-parameters.R:1686:3'): warnings are produced for unnecessary arguments ──
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::dcm_specify(qmatrix = test_qmatrix) at test-zzz-methods-get-parameters.R:1686:3
2. │ ├─S7::check_is_S7(measurement_model, measurement)
3. │ │ └─S7::S7_inherits(x, class)
4. │ │ └─S7:::class_inherits(x, class)
5. │ └─dcmstan::lcdm()
6. │ └─dcmstan:::LCDM(model = "lcdm", list(max_interaction = max_interaction))
7. │ └─S7::new_object(...)
8. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
9. └─dcmstan (local) `<LCDM>@model`(`<dc::LCDM>`, "lcdm")
── Error ('test-zzz-methods-get-parameters.R:1709:3'): combining parameters in a specification works ──
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::dcm_specify(qmatrix = test_qmatrix) at test-zzz-methods-get-parameters.R:1709:3
2. │ ├─S7::check_is_S7(measurement_model, measurement)
3. │ │ └─S7::S7_inherits(x, class)
4. │ │ └─S7:::class_inherits(x, class)
5. │ └─dcmstan::lcdm()
6. │ └─dcmstan:::LCDM(model = "lcdm", list(max_interaction = max_interaction))
7. │ └─S7::new_object(...)
8. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
9. └─dcmstan (local) `<LCDM>@model`(`<dc::LCDM>`, "lcdm")
── Error ('test-zzz-methods-stan-data.R:16:5'): correct data objects are returned ──
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::dcm_specify(...) at test-zzz-methods-stan-data.R:16:5
2. │ └─S7::check_is_S7(measurement_model, measurement)
3. │ └─S7::S7_inherits(x, class)
4. │ └─S7:::class_inherits(x, class)
5. ├─base::do.call(combos$meas[i], args = list())
6. ├─dcmstan::lcdm()
7. │ └─dcmstan:::LCDM(model = "lcdm", list(max_interaction = max_interaction))
8. │ └─S7::new_object(...)
9. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
10. └─dcmstan (local) `<LCDM>@model`(`<dc::LCDM>`, "lcdm")
── Error ('test-zzz-methods-stan-data.R:39:3'): correct gqs objects are returned ──
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::dcm_specify(qmatrix = dcmdata::dtmr_qmatrix, identifier = "item") at test-zzz-methods-stan-data.R:39:3
2. │ ├─S7::check_is_S7(measurement_model, measurement)
3. │ │ └─S7::S7_inherits(x, class)
4. │ │ └─S7:::class_inherits(x, class)
5. │ └─dcmstan::lcdm()
6. │ └─dcmstan:::LCDM(model = "lcdm", list(max_interaction = max_interaction))
7. │ └─S7::new_object(...)
8. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
9. └─dcmstan (local) `<LCDM>@model`(`<dc::LCDM>`, "lcdm")
── Error ('test-zzz-methods-stan-data.R:86:3'): independent data objects are correct ──
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::dcm_specify(...) at test-zzz-methods-stan-data.R:86:3
2. │ ├─S7::check_is_S7(measurement_model, measurement)
3. │ │ └─S7::S7_inherits(x, class)
4. │ │ └─S7:::class_inherits(x, class)
5. │ └─dcmstan::lcdm()
6. │ └─dcmstan:::LCDM(model = "lcdm", list(max_interaction = max_interaction))
7. │ └─S7::new_object(...)
8. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
9. └─dcmstan (local) `<LCDM>@model`(`<dc::LCDM>`, "lcdm")
── Error ('test-zzz-methods-stan-data.R:107:3'): dina data objects are correct ──
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::dcm_specify(...) at test-zzz-methods-stan-data.R:107:3
2. │ └─S7::check_is_S7(measurement_model, measurement)
3. │ └─S7::S7_inherits(x, class)
4. │ └─S7:::class_inherits(x, class)
5. ├─dcmstan::dina()
6. │ └─dcmstan:::DINA(model = "dina")
7. │ └─S7::new_object(...)
8. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
9. └─dcmstan (local) `<DINA>@model`(`<dc::DINA>`, "dina")
── Error ('test-zzz-methods-stan-data.R:139:3'): dino data objects are correct ──
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::dcm_specify(...) at test-zzz-methods-stan-data.R:139:3
2. │ └─S7::check_is_S7(measurement_model, measurement)
3. │ └─S7::S7_inherits(x, class)
4. │ └─S7:::class_inherits(x, class)
5. ├─dcmstan::dino()
6. │ └─dcmstan:::DINO(model = "dino")
7. │ └─S7::new_object(...)
8. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
9. └─dcmstan (local) `<DINO>@model`(`<dc::DINO>`, "dino")
── Error ('test-zzz-methods-stan-data.R:179:3'): hdcm data objects are correct ──
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::dcm_specify(...) at test-zzz-methods-stan-data.R:179:3
2. │ └─S7::check_is_S7(measurement_model, measurement)
3. │ └─S7::S7_inherits(x, class)
4. │ └─S7:::class_inherits(x, class)
5. ├─dcmstan::lcdm()
6. │ └─dcmstan:::LCDM(model = "lcdm", list(max_interaction = max_interaction))
7. │ └─S7::new_object(...)
8. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
9. └─dcmstan (local) `<LCDM>@model`(`<dc::LCDM>`, "lcdm")
[ FAIL 53 | WARN 0 | SKIP 4 | PASS 114 ]
Error:
! Test failures.
Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc
Version: 0.1.0
Check: re-building of vignette outputs
Result: ERROR
Error(s) in re-building vignettes:
...
--- re-building ‘dcmstan.Rmd’ using rmarkdown
Quitting from dcmstan.Rmd:57-68 [create-spec]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error:
! @model is read-only
---
Backtrace:
▆
1. ├─dcmstan::dcm_specify(...)
2. │ └─S7::check_is_S7(measurement_model, measurement)
3. │ └─S7::S7_inherits(x, class)
4. │ └─S7:::class_inherits(x, class)
5. ├─dcmstan::dina()
6. │ └─dcmstan:::DINA(model = "dina")
7. │ └─S7::new_object(...)
8. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
9. └─dcmstan (local) `<DINA>@model`(`<dc::DINA>`, "dina")
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: processing vignette 'dcmstan.Rmd' failed with diagnostics:
@model is read-only
--- failed re-building ‘dcmstan.Rmd’
SUMMARY: processing the following file failed:
‘dcmstan.Rmd’
Error: Vignette re-building failed.
Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc
Version: 0.1.0
Check: examples
Result: ERROR
Running examples in ‘dcmstan-Ex.R’ failed
The error most likely occurred in:
> ### Name: create_profiles
> ### Title: Generate mastery profiles
> ### Aliases: create_profiles
>
> ### ** Examples
>
> create_profiles(3L)
# A tibble: 8 × 3
att1 att2 att3
<int> <int> <int>
1 0 0 0
2 1 0 0
3 0 1 0
4 0 0 1
5 1 1 0
6 1 0 1
7 0 1 1
8 1 1 1
>
> create_profiles(5)
# A tibble: 32 × 5
att1 att2 att3 att4 att5
<int> <int> <int> <int> <int>
1 0 0 0 0 0
2 1 0 0 0 0
3 0 1 0 0 0
4 0 0 1 0 0
5 0 0 0 1 0
6 0 0 0 0 1
7 1 1 0 0 0
8 1 0 1 0 0
9 1 0 0 1 0
10 1 0 0 0 1
# ℹ 22 more rows
>
> create_profiles(unconstrained(), attributes = c("att1", "att2"))
Error: @model is read-only
Execution halted
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc
Version: 0.1.0
Check: tests
Result: ERROR
Running ‘spelling.R’
Running ‘testthat.R’ [12s/28s]
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(dcmstan)
>
> test_check("dcmstan")
Saving _problems/test-meas-dina-dino-6.R
Saving _problems/test-meas-dina-dino-71.R
Saving _problems/test-meas-lcdm-crum-6.R
Saving _problems/test-meas-lcdm-crum-62.R
Saving _problems/test-meas-lcdm-crum-110.R
Saving _problems/test-meas-lcdm-crum-207.R
Saving _problems/test-meas-ncrum-6.R
Saving _problems/test-meas-ncrum-49.R
Saving _problems/test-meas-nida-6.R
Saving _problems/test-meas-nida-49.R
Saving _problems/test-meas-nido-6.R
Saving _problems/test-meas-nido-38.R
Saving _problems/test-model-options-5.R
Saving _problems/test-model-options-24.R
Saving _problems/test-utils-hierarchy-147.R
Saving _problems/test-utils-hierarchy-148.R
Saving _problems/test-utils-hierarchy-149.R
Saving _problems/test-zzz-class-model-components-5.R
Saving _problems/test-zzz-class-model-components-43.R
Saving _problems/test-zzz-class-model-components-90.R
Saving _problems/test-zzz-class-model-priors-64.R
Saving _problems/test-zzz-class-model-specification-28.R
Saving _problems/test-zzz-class-model-specification-117.R
Saving _problems/test-zzz-class-model-specification-169.R
Saving _problems/test-zzz-methods-create-profiles-62.R
Saving _problems/test-zzz-methods-create-profiles-76.R
Saving _problems/test-zzz-methods-create-profiles-95.R
Saving _problems/test-zzz-methods-get-parameters-10.R
Saving _problems/test-zzz-methods-get-parameters-99.R
Saving _problems/test-zzz-methods-get-parameters-127.R
Saving _problems/test-zzz-methods-get-parameters-173.R
Saving _problems/test-zzz-methods-get-parameters-255.R
Saving _problems/test-zzz-methods-get-parameters-328.R
Saving _problems/test-zzz-methods-get-parameters-660.R
Saving _problems/test-zzz-methods-get-parameters-786.R
Saving _problems/test-zzz-methods-get-parameters-822.R
Saving _problems/test-zzz-methods-get-parameters-911.R
Saving _problems/test-zzz-methods-get-parameters-1025.R
Saving _problems/test-zzz-methods-get-parameters-1061.R
Saving _problems/test-zzz-methods-get-parameters-1147.R
Saving _problems/test-zzz-methods-get-parameters-1265.R
Saving _problems/test-zzz-methods-get-parameters-1294.R
Saving _problems/test-zzz-methods-get-parameters-1352.R
Saving _problems/test-zzz-methods-get-parameters-1427.R
Saving _problems/test-zzz-methods-get-parameters-1453.R
Saving _problems/test-zzz-methods-get-parameters-1686.R
Saving _problems/test-zzz-methods-get-parameters-1709.R
Saving _problems/test-zzz-methods-stan-data-21.R
Saving _problems/test-zzz-methods-stan-data-39.R
Saving _problems/test-zzz-methods-stan-data-90.R
Saving _problems/test-zzz-methods-stan-data-111.R
Saving _problems/test-zzz-methods-stan-data-144.R
Saving _problems/test-zzz-methods-stan-data-186.R
[ FAIL 53 | WARN 0 | SKIP 4 | PASS 114 ]
══ Skipped tests (4) ═══════════════════════════════════════════════════════════
• No MCMC on CRAN (1): 'test-zzz-methods-stan-code.R:2:3'
• On CRAN (3): 'test-gqs-default.R:1:1', 'test-model-options.R:28:1',
'test-zzz-class-model-priors.R:278:1'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-meas-dina-dino.R:2:3'): dina script works ──────────────────────
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::dcm_specify(...) at test-meas-dina-dino.R:2:3
2. │ └─S7::check_is_S7(measurement_model, measurement)
3. │ └─S7::S7_inherits(x, class)
4. │ └─S7:::class_inherits(x, class)
5. ├─dcmstan::dina()
6. │ └─dcmstan:::DINA(model = "dina")
7. │ └─S7::new_object(...)
8. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
9. └─dcmstan (local) `<DINA>@model`(`<dc::DINA>`, "dina")
── Error ('test-meas-dina-dino.R:67:3'): dino script works ─────────────────────
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::dcm_specify(...) at test-meas-dina-dino.R:67:3
2. │ └─S7::check_is_S7(measurement_model, measurement)
3. │ └─S7::S7_inherits(x, class)
4. │ └─S7:::class_inherits(x, class)
5. ├─dcmstan::dino()
6. │ └─dcmstan:::DINO(model = "dino")
7. │ └─S7::new_object(...)
8. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
9. └─dcmstan (local) `<DINO>@model`(`<dc::DINO>`, "dino")
── Error ('test-meas-lcdm-crum.R:2:3'): lcdm script works ──────────────────────
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::dcm_specify(...) at test-meas-lcdm-crum.R:2:3
2. │ └─S7::check_is_S7(measurement_model, measurement)
3. │ └─S7::S7_inherits(x, class)
4. │ └─S7:::class_inherits(x, class)
5. ├─dcmstan::lcdm()
6. │ └─dcmstan:::LCDM(model = "lcdm", list(max_interaction = max_interaction))
7. │ └─S7::new_object(...)
8. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
9. └─dcmstan (local) `<LCDM>@model`(`<dc::LCDM>`, "lcdm")
── Error ('test-meas-lcdm-crum.R:58:3'): crum script works ─────────────────────
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::dcm_specify(...) at test-meas-lcdm-crum.R:58:3
2. │ └─S7::check_is_S7(measurement_model, measurement)
3. │ └─S7::S7_inherits(x, class)
4. │ └─S7:::class_inherits(x, class)
5. ├─dcmstan::crum()
6. │ └─dcmstan:::CRUM(model = "crum")
7. │ └─S7::new_object(...)
8. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
9. └─dcmstan (local) `<CRUM>@model`(`<dc::CRUM>`, "crum")
── Error ('test-meas-lcdm-crum.R:103:3'): lcdm with hierarchy works ────────────
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::dcm_specify(...) at test-meas-lcdm-crum.R:103:3
2. │ └─S7::check_is_S7(measurement_model, measurement)
3. │ └─S7::S7_inherits(x, class)
4. │ └─S7:::class_inherits(x, class)
5. ├─dcmstan::lcdm()
6. │ └─dcmstan:::LCDM(model = "lcdm", list(max_interaction = max_interaction))
7. │ └─S7::new_object(...)
8. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
9. └─dcmstan (local) `<LCDM>@model`(`<dc::LCDM>`, "lcdm")
── Error ('test-meas-lcdm-crum.R:200:3'): crum with hierarchy works ────────────
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::dcm_specify(...) at test-meas-lcdm-crum.R:200:3
2. │ └─S7::check_is_S7(measurement_model, measurement)
3. │ └─S7::S7_inherits(x, class)
4. │ └─S7:::class_inherits(x, class)
5. ├─dcmstan::crum()
6. │ └─dcmstan:::CRUM(model = "crum")
7. │ └─S7::new_object(...)
8. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
9. └─dcmstan (local) `<CRUM>@model`(`<dc::CRUM>`, "crum")
── Error ('test-meas-ncrum.R:2:3'): ncrum script works ─────────────────────────
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::dcm_specify(...) at test-meas-ncrum.R:2:3
2. │ └─S7::check_is_S7(measurement_model, measurement)
3. │ └─S7::S7_inherits(x, class)
4. │ └─S7:::class_inherits(x, class)
5. ├─dcmstan::ncrum()
6. │ └─dcmstan:::NCRUM(model = "ncrum")
7. │ └─S7::new_object(...)
8. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
9. └─dcmstan (local) `<NCRUM>@model`(`<d::NCRUM>`, "ncrum")
── Error ('test-meas-ncrum.R:42:3'): ncrum with hierarchy works ────────────────
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::dcm_specify(...) at test-meas-ncrum.R:42:3
2. │ └─S7::check_is_S7(measurement_model, measurement)
3. │ └─S7::S7_inherits(x, class)
4. │ └─S7:::class_inherits(x, class)
5. ├─dcmstan::ncrum()
6. │ └─dcmstan:::NCRUM(model = "ncrum")
7. │ └─S7::new_object(...)
8. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
9. └─dcmstan (local) `<NCRUM>@model`(`<d::NCRUM>`, "ncrum")
── Error ('test-meas-nida.R:2:3'): nida script works ───────────────────────────
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::dcm_specify(...) at test-meas-nida.R:2:3
2. │ └─S7::check_is_S7(measurement_model, measurement)
3. │ └─S7::S7_inherits(x, class)
4. │ └─S7:::class_inherits(x, class)
5. ├─dcmstan::nida()
6. │ └─dcmstan:::NIDA(model = "nida")
7. │ └─S7::new_object(...)
8. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
9. └─dcmstan (local) `<NIDA>@model`(`<dc::NIDA>`, "nida")
── Error ('test-meas-nida.R:42:3'): nida with hierarchy works ──────────────────
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::dcm_specify(...) at test-meas-nida.R:42:3
2. │ └─S7::check_is_S7(measurement_model, measurement)
3. │ └─S7::S7_inherits(x, class)
4. │ └─S7:::class_inherits(x, class)
5. ├─dcmstan::nida()
6. │ └─dcmstan:::NIDA(model = "nida")
7. │ └─S7::new_object(...)
8. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
9. └─dcmstan (local) `<NIDA>@model`(`<dc::NIDA>`, "nida")
── Error ('test-meas-nido.R:2:3'): nido script works ───────────────────────────
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::dcm_specify(...) at test-meas-nido.R:2:3
2. │ └─S7::check_is_S7(measurement_model, measurement)
3. │ └─S7::S7_inherits(x, class)
4. │ └─S7:::class_inherits(x, class)
5. ├─dcmstan::nido()
6. │ └─dcmstan:::NIDO(model = "nido")
7. │ └─S7::new_object(...)
8. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
9. └─dcmstan (local) `<NIDO>@model`(`<dc::NIDO>`, "nido")
── Error ('test-meas-nido.R:31:3'): nido with hierarchy works ──────────────────
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::dcm_specify(...) at test-meas-nido.R:31:3
2. │ └─S7::check_is_S7(measurement_model, measurement)
3. │ └─S7::S7_inherits(x, class)
4. │ └─S7:::class_inherits(x, class)
5. ├─dcmstan::nido()
6. │ └─dcmstan:::NIDO(model = "nido")
7. │ └─S7::new_object(...)
8. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
9. └─dcmstan (local) `<NIDO>@model`(`<dc::NIDO>`, "nido")
── Error ('test-model-options.R:5:5'): measurement models have functions ───────
Error: @model is read-only
Backtrace:
▆
1. ├─S7::check_is_S7(do.call(m_choice[i], args = list()), measurement) at test-model-options.R:5:5
2. │ └─S7::S7_inherits(x, class)
3. │ └─S7:::class_inherits(x, class)
4. ├─base::do.call(m_choice[i], args = list())
5. ├─dcmstan::lcdm()
6. │ └─dcmstan:::LCDM(model = "lcdm", list(max_interaction = max_interaction))
7. │ └─S7::new_object(...)
8. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
9. └─dcmstan (local) `<LCDM>@model`(`<dc::LCDM>`, "lcdm")
── Error ('test-model-options.R:24:5'): structural models have functions ───────
Error: @model is read-only
Backtrace:
▆
1. ├─S7::check_is_S7(do.call(s_choice[i], args = list()), structural) at test-model-options.R:24:5
2. │ └─S7::S7_inherits(x, class)
3. │ └─S7:::class_inherits(x, class)
4. ├─base::do.call(s_choice[i], args = list())
5. ├─dcmstan::unconstrained()
6. │ └─dcmstan:::UNCONSTRAINED(model = "unconstrained")
7. │ └─S7::new_object(...)
8. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
9. └─dcmstan (local) `<UNCONSTRAINED>@model`(`<d::UNCON>`, "unconstrained")
── Failure ('test-utils-hierarchy.R:147:3'): check hierarchy names in specification ──
Expected `err` to inherit from "rlang_error".
Actual class: "simpleError"/"error"/"condition".
── Failure ('test-utils-hierarchy.R:148:3'): check hierarchy names in specification ──
Expected `err$message` to match regexp "only include attributes".
Actual text:
x | @model is read-only
── Error ('test-utils-hierarchy.R:149:3'): check hierarchy names in specification ──
Error in `expect_match(err$footer, "lexcial")`: `object` must be a character vector, not `NULL`.
Backtrace:
▆
1. └─testthat::expect_match(object = err$footer) at test-utils-hierarchy.R:149:3
2. └─testthat:::check_character(object)
3. └─testthat:::stop_input_type(...)
4. └─rlang::abort(message, ..., call = call, arg = arg)
── Error ('test-zzz-class-model-components.R:5:3'): measurement class works ────
Error: @model is read-only
Backtrace:
▆
1. ├─testthat::expect_true(S7::S7_inherits(lcdm(), measurement)) at test-zzz-class-model-components.R:5:3
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. ├─S7::S7_inherits(lcdm(), measurement)
5. │ └─S7:::class_inherits(x, class)
6. ├─dcmstan::lcdm()
7. │ └─dcmstan:::LCDM(model = "lcdm", list(max_interaction = max_interaction))
8. │ └─S7::new_object(...)
9. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
10. └─dcmstan (local) `<LCDM>@model`(`<dc::LCDM>`, "lcdm")
── Error ('test-zzz-class-model-components.R:43:3'): structural class works ────
Error: @model is read-only
Backtrace:
▆
1. ├─testthat::expect_true(S7::S7_inherits(unconstrained(), structural)) at test-zzz-class-model-components.R:43:3
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. ├─S7::S7_inherits(unconstrained(), structural)
5. │ └─S7:::class_inherits(x, class)
6. ├─dcmstan::unconstrained()
7. │ └─dcmstan:::UNCONSTRAINED(model = "unconstrained")
8. │ └─S7::new_object(...)
9. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
10. └─dcmstan (local) `<UNCONSTRAINED>@model`(`<d::UNCON>`, "unconstrained")
── Error ('test-zzz-class-model-components.R:90:3'): model_property cannot be overwritten ──
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::lcdm() at test-zzz-class-model-components.R:90:3
2. │ └─dcmstan:::LCDM(model = "lcdm", list(max_interaction = max_interaction))
3. │ └─S7::new_object(...)
4. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
5. └─dcmstan (local) `<LCDM>@model`(`<dc::LCDM>`, "lcdm")
── Error ('test-zzz-class-model-priors.R:61:3'): specify only measurement or structural ──
Error: @model is read-only
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test-zzz-class-model-priors.R:61:3
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. ├─dcmstan::default_dcm_priors(measurement_model = lcdm())
5. ├─dcmstan::lcdm()
6. │ └─dcmstan:::LCDM(model = "lcdm", list(max_interaction = max_interaction))
7. │ └─S7::new_object(...)
8. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
9. └─dcmstan (local) `<LCDM>@model`(`<dc::LCDM>`, "lcdm")
── Error ('test-zzz-class-model-specification.R:21:3'): dcm_specify errors when expected ──
Error: @model is read-only
Backtrace:
▆
1. ├─testthat::expect_error(...) at test-zzz-class-model-specification.R:21:3
2. │ └─testthat:::expect_condition_matching_(...)
3. │ └─testthat:::quasi_capture(...)
4. │ ├─testthat (local) .capture(...)
5. │ │ └─base::withCallingHandlers(...)
6. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
7. ├─dcmstan::dcm_specify(...)
8. │ └─S7::check_is_S7(measurement_model, measurement)
9. │ └─S7::S7_inherits(x, class)
10. │ └─S7:::class_inherits(x, class)
11. ├─dcmstan::unconstrained()
12. │ └─dcmstan:::UNCONSTRAINED(model = "unconstrained")
13. │ └─S7::new_object(...)
14. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
15. └─dcmstan (local) `<UNCONSTRAINED>@model`(`<d::UNCON>`, "unconstrained")
── Error ('test-zzz-class-model-specification.R:112:3'): dcm_specification works ──
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::dcm_specify(...) at test-zzz-class-model-specification.R:112:3
2. │ └─S7::check_is_S7(measurement_model, measurement)
3. │ └─S7::S7_inherits(x, class)
4. │ └─S7:::class_inherits(x, class)
5. ├─dcmstan::lcdm(max_interaction = 1)
6. │ └─dcmstan:::LCDM(model = "lcdm", list(max_interaction = max_interaction))
7. │ └─S7::new_object(...)
8. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
9. └─dcmstan (local) `<LCDM>@model`(`<dc::LCDM>`, "lcdm")
── Error ('test-zzz-class-model-specification.R:164:3'): printing works ────────
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::dcm_specify(...) at test-zzz-class-model-specification.R:164:3
2. │ └─S7::check_is_S7(measurement_model, measurement)
3. │ └─S7::S7_inherits(x, class)
4. │ └─S7:::class_inherits(x, class)
5. ├─dcmstan::lcdm(max_interaction = 1)
6. │ └─dcmstan:::LCDM(model = "lcdm", list(max_interaction = max_interaction))
7. │ └─S7::new_object(...)
8. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
9. └─dcmstan (local) `<LCDM>@model`(`<dc::LCDM>`, "lcdm")
── Error ('test-zzz-methods-create-profiles.R:59:3'): stuctural method works ───
Error: @model is read-only
Backtrace:
▆
1. ├─testthat::expect_identical(...) at test-zzz-methods-create-profiles.R:59:3
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. ├─dcmstan::create_profiles(...)
5. │ └─S7::S7_dispatch()
6. ├─dcmstan::unconstrained()
7. │ └─dcmstan:::UNCONSTRAINED(model = "unconstrained")
8. │ └─S7::new_object(...)
9. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
10. └─dcmstan (local) `<UNCONSTRAINED>@model`(`<d::UNCON>`, "unconstrained")
── Error ('test-zzz-methods-create-profiles.R:70:3'): HDCM method works ────────
Error: @model is read-only
Backtrace:
▆
1. ├─testthat::expect_identical(...) at test-zzz-methods-create-profiles.R:70:3
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. ├─dcmstan::create_profiles(...)
5. │ └─S7::S7_dispatch()
6. ├─dcmstan::hdcm(hierarchy = "att3 -> att2 -> att1")
7. │ └─dcmstan:::HDCM(model = "hdcm", list(hierarchy = hierarchy))
8. │ └─S7::new_object(...)
9. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
10. └─dcmstan (local) `<HDCM>@model`(`<dc::HDCM>`, "hdcm")
── Error ('test-zzz-methods-create-profiles.R:91:3'): dcm_specification method works ──
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::dcm_specify(...) at test-zzz-methods-create-profiles.R:91:3
2. │ ├─S7::check_is_S7(measurement_model, measurement)
3. │ │ └─S7::S7_inherits(x, class)
4. │ │ └─S7:::class_inherits(x, class)
5. │ └─dcmstan::lcdm()
6. │ └─dcmstan:::LCDM(model = "lcdm", list(max_interaction = max_interaction))
7. │ └─S7::new_object(...)
8. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
9. └─dcmstan (local) `<LCDM>@model`(`<dc::LCDM>`, "lcdm")
── Error ('test-zzz-methods-get-parameters.R:10:3'): lcdm parameters work ──────
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::get_parameters(lcdm(), qmatrix = test_qmatrix) at test-zzz-methods-get-parameters.R:10:3
2. │ └─S7::S7_dispatch()
3. ├─dcmstan::lcdm()
4. │ └─dcmstan:::LCDM(model = "lcdm", list(max_interaction = max_interaction))
5. │ └─S7::new_object(...)
6. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
7. └─dcmstan (local) `<LCDM>@model`(`<dc::LCDM>`, "lcdm")
── Error ('test-zzz-methods-get-parameters.R:99:3'): dina parameters work ──────
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::get_parameters(dina(), qmatrix = test_qmatrix) at test-zzz-methods-get-parameters.R:99:3
2. │ └─S7::S7_dispatch()
3. ├─dcmstan::dina()
4. │ └─dcmstan:::DINA(model = "dina")
5. │ └─S7::new_object(...)
6. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
7. └─dcmstan (local) `<DINA>@model`(`<dc::DINA>`, "dina")
── Error ('test-zzz-methods-get-parameters.R:123:3'): dino parameters work ─────
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::get_parameters(dino(), qmatrix = test_qmatrix, identifier = "test_item") at test-zzz-methods-get-parameters.R:123:3
2. │ └─S7::S7_dispatch()
3. ├─dcmstan::dino()
4. │ └─dcmstan:::DINO(model = "dino")
5. │ └─S7::new_object(...)
6. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
7. └─dcmstan (local) `<DINO>@model`(`<dc::DINO>`, "dino")
── Error ('test-zzz-methods-get-parameters.R:169:3'): nida parameters work ─────
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::get_parameters(nida(), qmatrix = test_qmatrix, identifier = "question") at test-zzz-methods-get-parameters.R:169:3
2. │ └─S7::S7_dispatch()
3. ├─dcmstan::nida()
4. │ └─dcmstan:::NIDA(model = "nida")
5. │ └─S7::new_object(...)
6. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
7. └─dcmstan (local) `<NIDA>@model`(`<dc::NIDA>`, "nida")
── Error ('test-zzz-methods-get-parameters.R:251:3'): nido parameters work ─────
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::get_parameters(nido(), qmatrix = test_qmatrix, identifier = "question") at test-zzz-methods-get-parameters.R:251:3
2. │ └─S7::S7_dispatch()
3. ├─dcmstan::nido()
4. │ └─dcmstan:::NIDO(model = "nido")
5. │ └─S7::new_object(...)
6. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
7. └─dcmstan (local) `<NIDO>@model`(`<dc::NIDO>`, "nido")
── Error ('test-zzz-methods-get-parameters.R:324:3'): ncrum parameters work ────
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::get_parameters(ncrum(), qmatrix = test_qmatrix, identifier = "question") at test-zzz-methods-get-parameters.R:324:3
2. │ └─S7::S7_dispatch()
3. ├─dcmstan::ncrum()
4. │ └─dcmstan:::NCRUM(model = "ncrum")
5. │ └─S7::new_object(...)
6. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
7. └─dcmstan (local) `<NCRUM>@model`(`<d::NCRUM>`, "ncrum")
── Error ('test-zzz-methods-get-parameters.R:656:3'): crum parameters work ─────
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::get_parameters(crum(), qmatrix = test_qmatrix, identifier = "question") at test-zzz-methods-get-parameters.R:656:3
2. │ └─S7::S7_dispatch()
3. ├─dcmstan::crum()
4. │ └─dcmstan:::CRUM(model = "crum")
5. │ └─S7::new_object(...)
6. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
7. └─dcmstan (local) `<CRUM>@model`(`<dc::CRUM>`, "crum")
── Error ('test-zzz-methods-get-parameters.R:780:3'): dina parameters (table 6.5) ──
Error: @model is read-only
Backtrace:
▆
1. ├─dplyr::filter(...) at test-zzz-methods-get-parameters.R:780:3
2. ├─dcmstan::get_parameters(...)
3. │ └─S7::S7_dispatch()
4. ├─dcmstan::dcm_specify(...)
5. │ └─S7::check_is_S7(measurement_model, measurement)
6. │ └─S7::S7_inherits(x, class)
7. │ └─S7:::class_inherits(x, class)
8. ├─dcmstan::dina()
9. │ └─dcmstan:::DINA(model = "dina")
10. │ └─S7::new_object(...)
11. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
12. └─dcmstan (local) `<DINA>@model`(`<dc::DINA>`, "dina")
── Error ('test-zzz-methods-get-parameters.R:816:3'): nida parameters (table 6.6) ──
Error: @model is read-only
Backtrace:
▆
1. ├─dplyr::filter(...) at test-zzz-methods-get-parameters.R:816:3
2. ├─dcmstan::get_parameters(...)
3. │ └─S7::S7_dispatch()
4. ├─dcmstan::dcm_specify(...)
5. │ └─S7::check_is_S7(measurement_model, measurement)
6. │ └─S7::S7_inherits(x, class)
7. │ └─S7:::class_inherits(x, class)
8. ├─dcmstan::nida()
9. │ └─dcmstan:::NIDA(model = "nida")
10. │ └─S7::new_object(...)
11. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
12. └─dcmstan (local) `<NIDA>@model`(`<dc::NIDA>`, "nida")
── Error ('test-zzz-methods-get-parameters.R:905:3'): ncrum parameters (table 6.8) ──
Error: @model is read-only
Backtrace:
▆
1. ├─dplyr::filter(...) at test-zzz-methods-get-parameters.R:905:3
2. ├─dcmstan::get_parameters(...)
3. │ └─S7::S7_dispatch()
4. ├─dcmstan::dcm_specify(...)
5. │ └─S7::check_is_S7(measurement_model, measurement)
6. │ └─S7::S7_inherits(x, class)
7. │ └─S7:::class_inherits(x, class)
8. ├─dcmstan::ncrum()
9. │ └─dcmstan:::NCRUM(model = "ncrum")
10. │ └─S7::new_object(...)
11. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
12. └─dcmstan (local) `<NCRUM>@model`(`<d::NCRUM>`, "ncrum")
── Error ('test-zzz-methods-get-parameters.R:1019:3'): dino parameters (table 6.13) ──
Error: @model is read-only
Backtrace:
▆
1. ├─dplyr::filter(...) at test-zzz-methods-get-parameters.R:1019:3
2. ├─dcmstan::get_parameters(...)
3. │ └─S7::S7_dispatch()
4. ├─dcmstan::dcm_specify(...)
5. │ └─S7::check_is_S7(measurement_model, measurement)
6. │ └─S7::S7_inherits(x, class)
7. │ └─S7:::class_inherits(x, class)
8. ├─dcmstan::dino()
9. │ └─dcmstan:::DINO(model = "dino")
10. │ └─S7::new_object(...)
11. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
12. └─dcmstan (local) `<DINO>@model`(`<dc::DINO>`, "dino")
── Error ('test-zzz-methods-get-parameters.R:1055:3'): nido parameters (table 6.15) ──
Error: @model is read-only
Backtrace:
▆
1. ├─dplyr::filter(...) at test-zzz-methods-get-parameters.R:1055:3
2. ├─dcmstan::get_parameters(...)
3. │ └─S7::S7_dispatch()
4. ├─dcmstan::dcm_specify(...)
5. │ └─S7::check_is_S7(measurement_model, measurement)
6. │ └─S7::S7_inherits(x, class)
7. │ └─S7:::class_inherits(x, class)
8. ├─dcmstan::nido()
9. │ └─dcmstan:::NIDO(model = "nido")
10. │ └─S7::new_object(...)
11. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
12. └─dcmstan (local) `<NIDO>@model`(`<dc::NIDO>`, "nido")
── Error ('test-zzz-methods-get-parameters.R:1141:3'): crum parameters (table 6.17) ──
Error: @model is read-only
Backtrace:
▆
1. ├─dplyr::filter(...) at test-zzz-methods-get-parameters.R:1141:3
2. ├─dcmstan::get_parameters(...)
3. │ └─S7::S7_dispatch()
4. ├─dcmstan::dcm_specify(...)
5. │ └─S7::check_is_S7(measurement_model, measurement)
6. │ └─S7::S7_inherits(x, class)
7. │ └─S7:::class_inherits(x, class)
8. ├─dcmstan::crum()
9. │ └─dcmstan:::CRUM(model = "crum")
10. │ └─S7::new_object(...)
11. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
12. └─dcmstan (local) `<CRUM>@model`(`<dc::CRUM>`, "crum")
── Error ('test-zzz-methods-get-parameters.R:1261:3'): unconstrained parameters work ──
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::get_parameters(...) at test-zzz-methods-get-parameters.R:1261:3
2. │ └─S7::S7_dispatch()
3. ├─dcmstan::unconstrained()
4. │ └─dcmstan:::UNCONSTRAINED(model = "unconstrained")
5. │ └─S7::new_object(...)
6. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
7. └─dcmstan (local) `<UNCONSTRAINED>@model`(`<d::UNCON>`, "unconstrained")
── Error ('test-zzz-methods-get-parameters.R:1290:3'): independent parameters work ──
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::get_parameters(...) at test-zzz-methods-get-parameters.R:1290:3
2. │ └─S7::S7_dispatch()
3. ├─dcmstan::independent()
4. │ └─dcmstan:::INDEPENDENT(model = "independent")
5. │ └─S7::new_object(...)
6. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
7. └─dcmstan (local) `<INDEPENDENT>@model`(`<d::INDEP>`, "independent")
── Error ('test-zzz-methods-get-parameters.R:1352:3'): loglinear parameters work ──
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::get_parameters(loglinear(), qmatrix = test_qmatrix) at test-zzz-methods-get-parameters.R:1352:3
2. │ └─S7::S7_dispatch()
3. ├─dcmstan::loglinear()
4. │ └─dcmstan:::LOGLINEAR(model = "loglinear", list(max_interaction = max_interaction))
5. │ └─S7::new_object(...)
6. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
7. └─dcmstan (local) `<LOGLINEAR>@model`(`<d::LOGLI>`, "loglinear")
── Error ('test-zzz-methods-get-parameters.R:1423:3'): hdcm parameters work ────
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::get_parameters(hdcm(), qmatrix = test_qmatrix, identifier = "test_item") at test-zzz-methods-get-parameters.R:1423:3
2. │ └─S7::S7_dispatch()
3. ├─dcmstan::hdcm()
4. │ └─dcmstan:::HDCM(model = "hdcm", list(hierarchy = hierarchy))
5. │ └─S7::new_object(...)
6. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
7. └─dcmstan (local) `<HDCM>@model`(`<dc::HDCM>`, "hdcm")
── Error ('test-zzz-methods-get-parameters.R:1444:3'): bayesian network parameters work ──
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::get_parameters(...) at test-zzz-methods-get-parameters.R:1444:3
2. │ └─S7::S7_dispatch()
3. ├─dcmstan::bayesnet("appropriateness -> multiplicative_comparison\n appropriateness -> partitioning_iterating\n multiplicative_comparison -> referent_units\n partitioning_iterating -> referent_units")
4. │ └─dcmstan:::BAYESNET(model = "bayesnet", list(hierarchy = hierarchy))
5. │ └─S7::new_object(...)
6. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
7. └─dcmstan (local) `<BAYESNET>@model`(`<d::BAYES>`, "bayesnet")
── Error ('test-zzz-methods-get-parameters.R:1686:3'): warnings are produced for unnecessary arguments ──
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::dcm_specify(qmatrix = test_qmatrix) at test-zzz-methods-get-parameters.R:1686:3
2. │ ├─S7::check_is_S7(measurement_model, measurement)
3. │ │ └─S7::S7_inherits(x, class)
4. │ │ └─S7:::class_inherits(x, class)
5. │ └─dcmstan::lcdm()
6. │ └─dcmstan:::LCDM(model = "lcdm", list(max_interaction = max_interaction))
7. │ └─S7::new_object(...)
8. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
9. └─dcmstan (local) `<LCDM>@model`(`<dc::LCDM>`, "lcdm")
── Error ('test-zzz-methods-get-parameters.R:1709:3'): combining parameters in a specification works ──
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::dcm_specify(qmatrix = test_qmatrix) at test-zzz-methods-get-parameters.R:1709:3
2. │ ├─S7::check_is_S7(measurement_model, measurement)
3. │ │ └─S7::S7_inherits(x, class)
4. │ │ └─S7:::class_inherits(x, class)
5. │ └─dcmstan::lcdm()
6. │ └─dcmstan:::LCDM(model = "lcdm", list(max_interaction = max_interaction))
7. │ └─S7::new_object(...)
8. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
9. └─dcmstan (local) `<LCDM>@model`(`<dc::LCDM>`, "lcdm")
── Error ('test-zzz-methods-stan-data.R:16:5'): correct data objects are returned ──
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::dcm_specify(...) at test-zzz-methods-stan-data.R:16:5
2. │ └─S7::check_is_S7(measurement_model, measurement)
3. │ └─S7::S7_inherits(x, class)
4. │ └─S7:::class_inherits(x, class)
5. ├─base::do.call(combos$meas[i], args = list())
6. ├─dcmstan::lcdm()
7. │ └─dcmstan:::LCDM(model = "lcdm", list(max_interaction = max_interaction))
8. │ └─S7::new_object(...)
9. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
10. └─dcmstan (local) `<LCDM>@model`(`<dc::LCDM>`, "lcdm")
── Error ('test-zzz-methods-stan-data.R:39:3'): correct gqs objects are returned ──
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::dcm_specify(qmatrix = dcmdata::dtmr_qmatrix, identifier = "item") at test-zzz-methods-stan-data.R:39:3
2. │ ├─S7::check_is_S7(measurement_model, measurement)
3. │ │ └─S7::S7_inherits(x, class)
4. │ │ └─S7:::class_inherits(x, class)
5. │ └─dcmstan::lcdm()
6. │ └─dcmstan:::LCDM(model = "lcdm", list(max_interaction = max_interaction))
7. │ └─S7::new_object(...)
8. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
9. └─dcmstan (local) `<LCDM>@model`(`<dc::LCDM>`, "lcdm")
── Error ('test-zzz-methods-stan-data.R:86:3'): independent data objects are correct ──
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::dcm_specify(...) at test-zzz-methods-stan-data.R:86:3
2. │ ├─S7::check_is_S7(measurement_model, measurement)
3. │ │ └─S7::S7_inherits(x, class)
4. │ │ └─S7:::class_inherits(x, class)
5. │ └─dcmstan::lcdm()
6. │ └─dcmstan:::LCDM(model = "lcdm", list(max_interaction = max_interaction))
7. │ └─S7::new_object(...)
8. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
9. └─dcmstan (local) `<LCDM>@model`(`<dc::LCDM>`, "lcdm")
── Error ('test-zzz-methods-stan-data.R:107:3'): dina data objects are correct ──
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::dcm_specify(...) at test-zzz-methods-stan-data.R:107:3
2. │ └─S7::check_is_S7(measurement_model, measurement)
3. │ └─S7::S7_inherits(x, class)
4. │ └─S7:::class_inherits(x, class)
5. ├─dcmstan::dina()
6. │ └─dcmstan:::DINA(model = "dina")
7. │ └─S7::new_object(...)
8. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
9. └─dcmstan (local) `<DINA>@model`(`<dc::DINA>`, "dina")
── Error ('test-zzz-methods-stan-data.R:139:3'): dino data objects are correct ──
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::dcm_specify(...) at test-zzz-methods-stan-data.R:139:3
2. │ └─S7::check_is_S7(measurement_model, measurement)
3. │ └─S7::S7_inherits(x, class)
4. │ └─S7:::class_inherits(x, class)
5. ├─dcmstan::dino()
6. │ └─dcmstan:::DINO(model = "dino")
7. │ └─S7::new_object(...)
8. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
9. └─dcmstan (local) `<DINO>@model`(`<dc::DINO>`, "dino")
── Error ('test-zzz-methods-stan-data.R:179:3'): hdcm data objects are correct ──
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::dcm_specify(...) at test-zzz-methods-stan-data.R:179:3
2. │ └─S7::check_is_S7(measurement_model, measurement)
3. │ └─S7::S7_inherits(x, class)
4. │ └─S7:::class_inherits(x, class)
5. ├─dcmstan::lcdm()
6. │ └─dcmstan:::LCDM(model = "lcdm", list(max_interaction = max_interaction))
7. │ └─S7::new_object(...)
8. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
9. └─dcmstan (local) `<LCDM>@model`(`<dc::LCDM>`, "lcdm")
[ FAIL 53 | WARN 0 | SKIP 4 | PASS 114 ]
Error:
! Test failures.
Execution halted
Flavor: r-devel-linux-x86_64-fedora-clang
Version: 0.1.0
Check: re-building of vignette outputs
Result: ERROR
Error(s) in re-building vignettes:
--- re-building ‘dcmstan.Rmd’ using rmarkdown
Quitting from dcmstan.Rmd:57-68 [create-spec]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error:
! @model is read-only
---
Backtrace:
▆
1. ├─dcmstan::dcm_specify(...)
2. │ └─S7::check_is_S7(measurement_model, measurement)
3. │ └─S7::S7_inherits(x, class)
4. │ └─S7:::class_inherits(x, class)
5. ├─dcmstan::dina()
6. │ └─dcmstan:::DINA(model = "dina")
7. │ └─S7::new_object(...)
8. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
9. └─dcmstan (local) `<DINA>@model`(`<dc::DINA>`, "dina")
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: processing vignette 'dcmstan.Rmd' failed with diagnostics:
@model is read-only
--- failed re-building ‘dcmstan.Rmd’
SUMMARY: processing the following file failed:
‘dcmstan.Rmd’
Error: Vignette re-building failed.
Execution halted
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc
Version: 0.1.0
Check: tests
Result: ERROR
Running ‘spelling.R’
Running ‘testthat.R’ [13s/30s]
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(dcmstan)
>
> test_check("dcmstan")
Saving _problems/test-meas-dina-dino-6.R
Saving _problems/test-meas-dina-dino-71.R
Saving _problems/test-meas-lcdm-crum-6.R
Saving _problems/test-meas-lcdm-crum-62.R
Saving _problems/test-meas-lcdm-crum-110.R
Saving _problems/test-meas-lcdm-crum-207.R
Saving _problems/test-meas-ncrum-6.R
Saving _problems/test-meas-ncrum-49.R
Saving _problems/test-meas-nida-6.R
Saving _problems/test-meas-nida-49.R
Saving _problems/test-meas-nido-6.R
Saving _problems/test-meas-nido-38.R
Saving _problems/test-model-options-5.R
Saving _problems/test-model-options-24.R
Saving _problems/test-utils-hierarchy-147.R
Saving _problems/test-utils-hierarchy-148.R
Saving _problems/test-utils-hierarchy-149.R
Saving _problems/test-zzz-class-model-components-5.R
Saving _problems/test-zzz-class-model-components-43.R
Saving _problems/test-zzz-class-model-components-90.R
Saving _problems/test-zzz-class-model-priors-64.R
Saving _problems/test-zzz-class-model-specification-28.R
Saving _problems/test-zzz-class-model-specification-117.R
Saving _problems/test-zzz-class-model-specification-169.R
Saving _problems/test-zzz-methods-create-profiles-62.R
Saving _problems/test-zzz-methods-create-profiles-76.R
Saving _problems/test-zzz-methods-create-profiles-95.R
Saving _problems/test-zzz-methods-get-parameters-10.R
Saving _problems/test-zzz-methods-get-parameters-99.R
Saving _problems/test-zzz-methods-get-parameters-127.R
Saving _problems/test-zzz-methods-get-parameters-173.R
Saving _problems/test-zzz-methods-get-parameters-255.R
Saving _problems/test-zzz-methods-get-parameters-328.R
Saving _problems/test-zzz-methods-get-parameters-660.R
Saving _problems/test-zzz-methods-get-parameters-786.R
Saving _problems/test-zzz-methods-get-parameters-822.R
Saving _problems/test-zzz-methods-get-parameters-911.R
Saving _problems/test-zzz-methods-get-parameters-1025.R
Saving _problems/test-zzz-methods-get-parameters-1061.R
Saving _problems/test-zzz-methods-get-parameters-1147.R
Saving _problems/test-zzz-methods-get-parameters-1265.R
Saving _problems/test-zzz-methods-get-parameters-1294.R
Saving _problems/test-zzz-methods-get-parameters-1352.R
Saving _problems/test-zzz-methods-get-parameters-1427.R
Saving _problems/test-zzz-methods-get-parameters-1453.R
Saving _problems/test-zzz-methods-get-parameters-1686.R
Saving _problems/test-zzz-methods-get-parameters-1709.R
Saving _problems/test-zzz-methods-stan-data-21.R
Saving _problems/test-zzz-methods-stan-data-39.R
Saving _problems/test-zzz-methods-stan-data-90.R
Saving _problems/test-zzz-methods-stan-data-111.R
Saving _problems/test-zzz-methods-stan-data-144.R
Saving _problems/test-zzz-methods-stan-data-186.R
[ FAIL 53 | WARN 0 | SKIP 4 | PASS 114 ]
══ Skipped tests (4) ═══════════════════════════════════════════════════════════
• No MCMC on CRAN (1): 'test-zzz-methods-stan-code.R:2:3'
• On CRAN (3): 'test-gqs-default.R:1:1', 'test-model-options.R:28:1',
'test-zzz-class-model-priors.R:278:1'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-meas-dina-dino.R:2:3'): dina script works ──────────────────────
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::dcm_specify(...) at test-meas-dina-dino.R:2:3
2. │ └─S7::check_is_S7(measurement_model, measurement)
3. │ └─S7::S7_inherits(x, class)
4. │ └─S7:::class_inherits(x, class)
5. ├─dcmstan::dina()
6. │ └─dcmstan:::DINA(model = "dina")
7. │ └─S7::new_object(...)
8. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
9. └─dcmstan (local) `<DINA>@model`(`<dc::DINA>`, "dina")
── Error ('test-meas-dina-dino.R:67:3'): dino script works ─────────────────────
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::dcm_specify(...) at test-meas-dina-dino.R:67:3
2. │ └─S7::check_is_S7(measurement_model, measurement)
3. │ └─S7::S7_inherits(x, class)
4. │ └─S7:::class_inherits(x, class)
5. ├─dcmstan::dino()
6. │ └─dcmstan:::DINO(model = "dino")
7. │ └─S7::new_object(...)
8. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
9. └─dcmstan (local) `<DINO>@model`(`<dc::DINO>`, "dino")
── Error ('test-meas-lcdm-crum.R:2:3'): lcdm script works ──────────────────────
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::dcm_specify(...) at test-meas-lcdm-crum.R:2:3
2. │ └─S7::check_is_S7(measurement_model, measurement)
3. │ └─S7::S7_inherits(x, class)
4. │ └─S7:::class_inherits(x, class)
5. ├─dcmstan::lcdm()
6. │ └─dcmstan:::LCDM(model = "lcdm", list(max_interaction = max_interaction))
7. │ └─S7::new_object(...)
8. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
9. └─dcmstan (local) `<LCDM>@model`(`<dc::LCDM>`, "lcdm")
── Error ('test-meas-lcdm-crum.R:58:3'): crum script works ─────────────────────
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::dcm_specify(...) at test-meas-lcdm-crum.R:58:3
2. │ └─S7::check_is_S7(measurement_model, measurement)
3. │ └─S7::S7_inherits(x, class)
4. │ └─S7:::class_inherits(x, class)
5. ├─dcmstan::crum()
6. │ └─dcmstan:::CRUM(model = "crum")
7. │ └─S7::new_object(...)
8. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
9. └─dcmstan (local) `<CRUM>@model`(`<dc::CRUM>`, "crum")
── Error ('test-meas-lcdm-crum.R:103:3'): lcdm with hierarchy works ────────────
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::dcm_specify(...) at test-meas-lcdm-crum.R:103:3
2. │ └─S7::check_is_S7(measurement_model, measurement)
3. │ └─S7::S7_inherits(x, class)
4. │ └─S7:::class_inherits(x, class)
5. ├─dcmstan::lcdm()
6. │ └─dcmstan:::LCDM(model = "lcdm", list(max_interaction = max_interaction))
7. │ └─S7::new_object(...)
8. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
9. └─dcmstan (local) `<LCDM>@model`(`<dc::LCDM>`, "lcdm")
── Error ('test-meas-lcdm-crum.R:200:3'): crum with hierarchy works ────────────
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::dcm_specify(...) at test-meas-lcdm-crum.R:200:3
2. │ └─S7::check_is_S7(measurement_model, measurement)
3. │ └─S7::S7_inherits(x, class)
4. │ └─S7:::class_inherits(x, class)
5. ├─dcmstan::crum()
6. │ └─dcmstan:::CRUM(model = "crum")
7. │ └─S7::new_object(...)
8. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
9. └─dcmstan (local) `<CRUM>@model`(`<dc::CRUM>`, "crum")
── Error ('test-meas-ncrum.R:2:3'): ncrum script works ─────────────────────────
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::dcm_specify(...) at test-meas-ncrum.R:2:3
2. │ └─S7::check_is_S7(measurement_model, measurement)
3. │ └─S7::S7_inherits(x, class)
4. │ └─S7:::class_inherits(x, class)
5. ├─dcmstan::ncrum()
6. │ └─dcmstan:::NCRUM(model = "ncrum")
7. │ └─S7::new_object(...)
8. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
9. └─dcmstan (local) `<NCRUM>@model`(`<d::NCRUM>`, "ncrum")
── Error ('test-meas-ncrum.R:42:3'): ncrum with hierarchy works ────────────────
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::dcm_specify(...) at test-meas-ncrum.R:42:3
2. │ └─S7::check_is_S7(measurement_model, measurement)
3. │ └─S7::S7_inherits(x, class)
4. │ └─S7:::class_inherits(x, class)
5. ├─dcmstan::ncrum()
6. │ └─dcmstan:::NCRUM(model = "ncrum")
7. │ └─S7::new_object(...)
8. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
9. └─dcmstan (local) `<NCRUM>@model`(`<d::NCRUM>`, "ncrum")
── Error ('test-meas-nida.R:2:3'): nida script works ───────────────────────────
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::dcm_specify(...) at test-meas-nida.R:2:3
2. │ └─S7::check_is_S7(measurement_model, measurement)
3. │ └─S7::S7_inherits(x, class)
4. │ └─S7:::class_inherits(x, class)
5. ├─dcmstan::nida()
6. │ └─dcmstan:::NIDA(model = "nida")
7. │ └─S7::new_object(...)
8. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
9. └─dcmstan (local) `<NIDA>@model`(`<dc::NIDA>`, "nida")
── Error ('test-meas-nida.R:42:3'): nida with hierarchy works ──────────────────
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::dcm_specify(...) at test-meas-nida.R:42:3
2. │ └─S7::check_is_S7(measurement_model, measurement)
3. │ └─S7::S7_inherits(x, class)
4. │ └─S7:::class_inherits(x, class)
5. ├─dcmstan::nida()
6. │ └─dcmstan:::NIDA(model = "nida")
7. │ └─S7::new_object(...)
8. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
9. └─dcmstan (local) `<NIDA>@model`(`<dc::NIDA>`, "nida")
── Error ('test-meas-nido.R:2:3'): nido script works ───────────────────────────
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::dcm_specify(...) at test-meas-nido.R:2:3
2. │ └─S7::check_is_S7(measurement_model, measurement)
3. │ └─S7::S7_inherits(x, class)
4. │ └─S7:::class_inherits(x, class)
5. ├─dcmstan::nido()
6. │ └─dcmstan:::NIDO(model = "nido")
7. │ └─S7::new_object(...)
8. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
9. └─dcmstan (local) `<NIDO>@model`(`<dc::NIDO>`, "nido")
── Error ('test-meas-nido.R:31:3'): nido with hierarchy works ──────────────────
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::dcm_specify(...) at test-meas-nido.R:31:3
2. │ └─S7::check_is_S7(measurement_model, measurement)
3. │ └─S7::S7_inherits(x, class)
4. │ └─S7:::class_inherits(x, class)
5. ├─dcmstan::nido()
6. │ └─dcmstan:::NIDO(model = "nido")
7. │ └─S7::new_object(...)
8. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
9. └─dcmstan (local) `<NIDO>@model`(`<dc::NIDO>`, "nido")
── Error ('test-model-options.R:5:5'): measurement models have functions ───────
Error: @model is read-only
Backtrace:
▆
1. ├─S7::check_is_S7(do.call(m_choice[i], args = list()), measurement) at test-model-options.R:5:5
2. │ └─S7::S7_inherits(x, class)
3. │ └─S7:::class_inherits(x, class)
4. ├─base::do.call(m_choice[i], args = list())
5. ├─dcmstan::lcdm()
6. │ └─dcmstan:::LCDM(model = "lcdm", list(max_interaction = max_interaction))
7. │ └─S7::new_object(...)
8. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
9. └─dcmstan (local) `<LCDM>@model`(`<dc::LCDM>`, "lcdm")
── Error ('test-model-options.R:24:5'): structural models have functions ───────
Error: @model is read-only
Backtrace:
▆
1. ├─S7::check_is_S7(do.call(s_choice[i], args = list()), structural) at test-model-options.R:24:5
2. │ └─S7::S7_inherits(x, class)
3. │ └─S7:::class_inherits(x, class)
4. ├─base::do.call(s_choice[i], args = list())
5. ├─dcmstan::unconstrained()
6. │ └─dcmstan:::UNCONSTRAINED(model = "unconstrained")
7. │ └─S7::new_object(...)
8. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
9. └─dcmstan (local) `<UNCONSTRAINED>@model`(`<d::UNCON>`, "unconstrained")
── Failure ('test-utils-hierarchy.R:147:3'): check hierarchy names in specification ──
Expected `err` to inherit from "rlang_error".
Actual class: "simpleError"/"error"/"condition".
── Failure ('test-utils-hierarchy.R:148:3'): check hierarchy names in specification ──
Expected `err$message` to match regexp "only include attributes".
Actual text:
x | @model is read-only
── Error ('test-utils-hierarchy.R:149:3'): check hierarchy names in specification ──
Error in `expect_match(err$footer, "lexcial")`: `object` must be a character vector, not `NULL`.
Backtrace:
▆
1. └─testthat::expect_match(object = err$footer) at test-utils-hierarchy.R:149:3
2. └─testthat:::check_character(object)
3. └─testthat:::stop_input_type(...)
4. └─rlang::abort(message, ..., call = call, arg = arg)
── Error ('test-zzz-class-model-components.R:5:3'): measurement class works ────
Error: @model is read-only
Backtrace:
▆
1. ├─testthat::expect_true(S7::S7_inherits(lcdm(), measurement)) at test-zzz-class-model-components.R:5:3
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. ├─S7::S7_inherits(lcdm(), measurement)
5. │ └─S7:::class_inherits(x, class)
6. ├─dcmstan::lcdm()
7. │ └─dcmstan:::LCDM(model = "lcdm", list(max_interaction = max_interaction))
8. │ └─S7::new_object(...)
9. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
10. └─dcmstan (local) `<LCDM>@model`(`<dc::LCDM>`, "lcdm")
── Error ('test-zzz-class-model-components.R:43:3'): structural class works ────
Error: @model is read-only
Backtrace:
▆
1. ├─testthat::expect_true(S7::S7_inherits(unconstrained(), structural)) at test-zzz-class-model-components.R:43:3
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. ├─S7::S7_inherits(unconstrained(), structural)
5. │ └─S7:::class_inherits(x, class)
6. ├─dcmstan::unconstrained()
7. │ └─dcmstan:::UNCONSTRAINED(model = "unconstrained")
8. │ └─S7::new_object(...)
9. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
10. └─dcmstan (local) `<UNCONSTRAINED>@model`(`<d::UNCON>`, "unconstrained")
── Error ('test-zzz-class-model-components.R:90:3'): model_property cannot be overwritten ──
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::lcdm() at test-zzz-class-model-components.R:90:3
2. │ └─dcmstan:::LCDM(model = "lcdm", list(max_interaction = max_interaction))
3. │ └─S7::new_object(...)
4. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
5. └─dcmstan (local) `<LCDM>@model`(`<dc::LCDM>`, "lcdm")
── Error ('test-zzz-class-model-priors.R:61:3'): specify only measurement or structural ──
Error: @model is read-only
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test-zzz-class-model-priors.R:61:3
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. ├─dcmstan::default_dcm_priors(measurement_model = lcdm())
5. ├─dcmstan::lcdm()
6. │ └─dcmstan:::LCDM(model = "lcdm", list(max_interaction = max_interaction))
7. │ └─S7::new_object(...)
8. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
9. └─dcmstan (local) `<LCDM>@model`(`<dc::LCDM>`, "lcdm")
── Error ('test-zzz-class-model-specification.R:21:3'): dcm_specify errors when expected ──
Error: @model is read-only
Backtrace:
▆
1. ├─testthat::expect_error(...) at test-zzz-class-model-specification.R:21:3
2. │ └─testthat:::expect_condition_matching_(...)
3. │ └─testthat:::quasi_capture(...)
4. │ ├─testthat (local) .capture(...)
5. │ │ └─base::withCallingHandlers(...)
6. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
7. ├─dcmstan::dcm_specify(...)
8. │ └─S7::check_is_S7(measurement_model, measurement)
9. │ └─S7::S7_inherits(x, class)
10. │ └─S7:::class_inherits(x, class)
11. ├─dcmstan::unconstrained()
12. │ └─dcmstan:::UNCONSTRAINED(model = "unconstrained")
13. │ └─S7::new_object(...)
14. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
15. └─dcmstan (local) `<UNCONSTRAINED>@model`(`<d::UNCON>`, "unconstrained")
── Error ('test-zzz-class-model-specification.R:112:3'): dcm_specification works ──
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::dcm_specify(...) at test-zzz-class-model-specification.R:112:3
2. │ └─S7::check_is_S7(measurement_model, measurement)
3. │ └─S7::S7_inherits(x, class)
4. │ └─S7:::class_inherits(x, class)
5. ├─dcmstan::lcdm(max_interaction = 1)
6. │ └─dcmstan:::LCDM(model = "lcdm", list(max_interaction = max_interaction))
7. │ └─S7::new_object(...)
8. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
9. └─dcmstan (local) `<LCDM>@model`(`<dc::LCDM>`, "lcdm")
── Error ('test-zzz-class-model-specification.R:164:3'): printing works ────────
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::dcm_specify(...) at test-zzz-class-model-specification.R:164:3
2. │ └─S7::check_is_S7(measurement_model, measurement)
3. │ └─S7::S7_inherits(x, class)
4. │ └─S7:::class_inherits(x, class)
5. ├─dcmstan::lcdm(max_interaction = 1)
6. │ └─dcmstan:::LCDM(model = "lcdm", list(max_interaction = max_interaction))
7. │ └─S7::new_object(...)
8. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
9. └─dcmstan (local) `<LCDM>@model`(`<dc::LCDM>`, "lcdm")
── Error ('test-zzz-methods-create-profiles.R:59:3'): stuctural method works ───
Error: @model is read-only
Backtrace:
▆
1. ├─testthat::expect_identical(...) at test-zzz-methods-create-profiles.R:59:3
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. ├─dcmstan::create_profiles(...)
5. │ └─S7::S7_dispatch()
6. ├─dcmstan::unconstrained()
7. │ └─dcmstan:::UNCONSTRAINED(model = "unconstrained")
8. │ └─S7::new_object(...)
9. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
10. └─dcmstan (local) `<UNCONSTRAINED>@model`(`<d::UNCON>`, "unconstrained")
── Error ('test-zzz-methods-create-profiles.R:70:3'): HDCM method works ────────
Error: @model is read-only
Backtrace:
▆
1. ├─testthat::expect_identical(...) at test-zzz-methods-create-profiles.R:70:3
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. ├─dcmstan::create_profiles(...)
5. │ └─S7::S7_dispatch()
6. ├─dcmstan::hdcm(hierarchy = "att3 -> att2 -> att1")
7. │ └─dcmstan:::HDCM(model = "hdcm", list(hierarchy = hierarchy))
8. │ └─S7::new_object(...)
9. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
10. └─dcmstan (local) `<HDCM>@model`(`<dc::HDCM>`, "hdcm")
── Error ('test-zzz-methods-create-profiles.R:91:3'): dcm_specification method works ──
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::dcm_specify(...) at test-zzz-methods-create-profiles.R:91:3
2. │ ├─S7::check_is_S7(measurement_model, measurement)
3. │ │ └─S7::S7_inherits(x, class)
4. │ │ └─S7:::class_inherits(x, class)
5. │ └─dcmstan::lcdm()
6. │ └─dcmstan:::LCDM(model = "lcdm", list(max_interaction = max_interaction))
7. │ └─S7::new_object(...)
8. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
9. └─dcmstan (local) `<LCDM>@model`(`<dc::LCDM>`, "lcdm")
── Error ('test-zzz-methods-get-parameters.R:10:3'): lcdm parameters work ──────
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::get_parameters(lcdm(), qmatrix = test_qmatrix) at test-zzz-methods-get-parameters.R:10:3
2. │ └─S7::S7_dispatch()
3. ├─dcmstan::lcdm()
4. │ └─dcmstan:::LCDM(model = "lcdm", list(max_interaction = max_interaction))
5. │ └─S7::new_object(...)
6. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
7. └─dcmstan (local) `<LCDM>@model`(`<dc::LCDM>`, "lcdm")
── Error ('test-zzz-methods-get-parameters.R:99:3'): dina parameters work ──────
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::get_parameters(dina(), qmatrix = test_qmatrix) at test-zzz-methods-get-parameters.R:99:3
2. │ └─S7::S7_dispatch()
3. ├─dcmstan::dina()
4. │ └─dcmstan:::DINA(model = "dina")
5. │ └─S7::new_object(...)
6. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
7. └─dcmstan (local) `<DINA>@model`(`<dc::DINA>`, "dina")
── Error ('test-zzz-methods-get-parameters.R:123:3'): dino parameters work ─────
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::get_parameters(dino(), qmatrix = test_qmatrix, identifier = "test_item") at test-zzz-methods-get-parameters.R:123:3
2. │ └─S7::S7_dispatch()
3. ├─dcmstan::dino()
4. │ └─dcmstan:::DINO(model = "dino")
5. │ └─S7::new_object(...)
6. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
7. └─dcmstan (local) `<DINO>@model`(`<dc::DINO>`, "dino")
── Error ('test-zzz-methods-get-parameters.R:169:3'): nida parameters work ─────
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::get_parameters(nida(), qmatrix = test_qmatrix, identifier = "question") at test-zzz-methods-get-parameters.R:169:3
2. │ └─S7::S7_dispatch()
3. ├─dcmstan::nida()
4. │ └─dcmstan:::NIDA(model = "nida")
5. │ └─S7::new_object(...)
6. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
7. └─dcmstan (local) `<NIDA>@model`(`<dc::NIDA>`, "nida")
── Error ('test-zzz-methods-get-parameters.R:251:3'): nido parameters work ─────
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::get_parameters(nido(), qmatrix = test_qmatrix, identifier = "question") at test-zzz-methods-get-parameters.R:251:3
2. │ └─S7::S7_dispatch()
3. ├─dcmstan::nido()
4. │ └─dcmstan:::NIDO(model = "nido")
5. │ └─S7::new_object(...)
6. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
7. └─dcmstan (local) `<NIDO>@model`(`<dc::NIDO>`, "nido")
── Error ('test-zzz-methods-get-parameters.R:324:3'): ncrum parameters work ────
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::get_parameters(ncrum(), qmatrix = test_qmatrix, identifier = "question") at test-zzz-methods-get-parameters.R:324:3
2. │ └─S7::S7_dispatch()
3. ├─dcmstan::ncrum()
4. │ └─dcmstan:::NCRUM(model = "ncrum")
5. │ └─S7::new_object(...)
6. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
7. └─dcmstan (local) `<NCRUM>@model`(`<d::NCRUM>`, "ncrum")
── Error ('test-zzz-methods-get-parameters.R:656:3'): crum parameters work ─────
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::get_parameters(crum(), qmatrix = test_qmatrix, identifier = "question") at test-zzz-methods-get-parameters.R:656:3
2. │ └─S7::S7_dispatch()
3. ├─dcmstan::crum()
4. │ └─dcmstan:::CRUM(model = "crum")
5. │ └─S7::new_object(...)
6. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
7. └─dcmstan (local) `<CRUM>@model`(`<dc::CRUM>`, "crum")
── Error ('test-zzz-methods-get-parameters.R:780:3'): dina parameters (table 6.5) ──
Error: @model is read-only
Backtrace:
▆
1. ├─dplyr::filter(...) at test-zzz-methods-get-parameters.R:780:3
2. ├─dcmstan::get_parameters(...)
3. │ └─S7::S7_dispatch()
4. ├─dcmstan::dcm_specify(...)
5. │ └─S7::check_is_S7(measurement_model, measurement)
6. │ └─S7::S7_inherits(x, class)
7. │ └─S7:::class_inherits(x, class)
8. ├─dcmstan::dina()
9. │ └─dcmstan:::DINA(model = "dina")
10. │ └─S7::new_object(...)
11. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
12. └─dcmstan (local) `<DINA>@model`(`<dc::DINA>`, "dina")
── Error ('test-zzz-methods-get-parameters.R:816:3'): nida parameters (table 6.6) ──
Error: @model is read-only
Backtrace:
▆
1. ├─dplyr::filter(...) at test-zzz-methods-get-parameters.R:816:3
2. ├─dcmstan::get_parameters(...)
3. │ └─S7::S7_dispatch()
4. ├─dcmstan::dcm_specify(...)
5. │ └─S7::check_is_S7(measurement_model, measurement)
6. │ └─S7::S7_inherits(x, class)
7. │ └─S7:::class_inherits(x, class)
8. ├─dcmstan::nida()
9. │ └─dcmstan:::NIDA(model = "nida")
10. │ └─S7::new_object(...)
11. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
12. └─dcmstan (local) `<NIDA>@model`(`<dc::NIDA>`, "nida")
── Error ('test-zzz-methods-get-parameters.R:905:3'): ncrum parameters (table 6.8) ──
Error: @model is read-only
Backtrace:
▆
1. ├─dplyr::filter(...) at test-zzz-methods-get-parameters.R:905:3
2. ├─dcmstan::get_parameters(...)
3. │ └─S7::S7_dispatch()
4. ├─dcmstan::dcm_specify(...)
5. │ └─S7::check_is_S7(measurement_model, measurement)
6. │ └─S7::S7_inherits(x, class)
7. │ └─S7:::class_inherits(x, class)
8. ├─dcmstan::ncrum()
9. │ └─dcmstan:::NCRUM(model = "ncrum")
10. │ └─S7::new_object(...)
11. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
12. └─dcmstan (local) `<NCRUM>@model`(`<d::NCRUM>`, "ncrum")
── Error ('test-zzz-methods-get-parameters.R:1019:3'): dino parameters (table 6.13) ──
Error: @model is read-only
Backtrace:
▆
1. ├─dplyr::filter(...) at test-zzz-methods-get-parameters.R:1019:3
2. ├─dcmstan::get_parameters(...)
3. │ └─S7::S7_dispatch()
4. ├─dcmstan::dcm_specify(...)
5. │ └─S7::check_is_S7(measurement_model, measurement)
6. │ └─S7::S7_inherits(x, class)
7. │ └─S7:::class_inherits(x, class)
8. ├─dcmstan::dino()
9. │ └─dcmstan:::DINO(model = "dino")
10. │ └─S7::new_object(...)
11. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
12. └─dcmstan (local) `<DINO>@model`(`<dc::DINO>`, "dino")
── Error ('test-zzz-methods-get-parameters.R:1055:3'): nido parameters (table 6.15) ──
Error: @model is read-only
Backtrace:
▆
1. ├─dplyr::filter(...) at test-zzz-methods-get-parameters.R:1055:3
2. ├─dcmstan::get_parameters(...)
3. │ └─S7::S7_dispatch()
4. ├─dcmstan::dcm_specify(...)
5. │ └─S7::check_is_S7(measurement_model, measurement)
6. │ └─S7::S7_inherits(x, class)
7. │ └─S7:::class_inherits(x, class)
8. ├─dcmstan::nido()
9. │ └─dcmstan:::NIDO(model = "nido")
10. │ └─S7::new_object(...)
11. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
12. └─dcmstan (local) `<NIDO>@model`(`<dc::NIDO>`, "nido")
── Error ('test-zzz-methods-get-parameters.R:1141:3'): crum parameters (table 6.17) ──
Error: @model is read-only
Backtrace:
▆
1. ├─dplyr::filter(...) at test-zzz-methods-get-parameters.R:1141:3
2. ├─dcmstan::get_parameters(...)
3. │ └─S7::S7_dispatch()
4. ├─dcmstan::dcm_specify(...)
5. │ └─S7::check_is_S7(measurement_model, measurement)
6. │ └─S7::S7_inherits(x, class)
7. │ └─S7:::class_inherits(x, class)
8. ├─dcmstan::crum()
9. │ └─dcmstan:::CRUM(model = "crum")
10. │ └─S7::new_object(...)
11. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
12. └─dcmstan (local) `<CRUM>@model`(`<dc::CRUM>`, "crum")
── Error ('test-zzz-methods-get-parameters.R:1261:3'): unconstrained parameters work ──
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::get_parameters(...) at test-zzz-methods-get-parameters.R:1261:3
2. │ └─S7::S7_dispatch()
3. ├─dcmstan::unconstrained()
4. │ └─dcmstan:::UNCONSTRAINED(model = "unconstrained")
5. │ └─S7::new_object(...)
6. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
7. └─dcmstan (local) `<UNCONSTRAINED>@model`(`<d::UNCON>`, "unconstrained")
── Error ('test-zzz-methods-get-parameters.R:1290:3'): independent parameters work ──
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::get_parameters(...) at test-zzz-methods-get-parameters.R:1290:3
2. │ └─S7::S7_dispatch()
3. ├─dcmstan::independent()
4. │ └─dcmstan:::INDEPENDENT(model = "independent")
5. │ └─S7::new_object(...)
6. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
7. └─dcmstan (local) `<INDEPENDENT>@model`(`<d::INDEP>`, "independent")
── Error ('test-zzz-methods-get-parameters.R:1352:3'): loglinear parameters work ──
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::get_parameters(loglinear(), qmatrix = test_qmatrix) at test-zzz-methods-get-parameters.R:1352:3
2. │ └─S7::S7_dispatch()
3. ├─dcmstan::loglinear()
4. │ └─dcmstan:::LOGLINEAR(model = "loglinear", list(max_interaction = max_interaction))
5. │ └─S7::new_object(...)
6. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
7. └─dcmstan (local) `<LOGLINEAR>@model`(`<d::LOGLI>`, "loglinear")
── Error ('test-zzz-methods-get-parameters.R:1423:3'): hdcm parameters work ────
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::get_parameters(hdcm(), qmatrix = test_qmatrix, identifier = "test_item") at test-zzz-methods-get-parameters.R:1423:3
2. │ └─S7::S7_dispatch()
3. ├─dcmstan::hdcm()
4. │ └─dcmstan:::HDCM(model = "hdcm", list(hierarchy = hierarchy))
5. │ └─S7::new_object(...)
6. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
7. └─dcmstan (local) `<HDCM>@model`(`<dc::HDCM>`, "hdcm")
── Error ('test-zzz-methods-get-parameters.R:1444:3'): bayesian network parameters work ──
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::get_parameters(...) at test-zzz-methods-get-parameters.R:1444:3
2. │ └─S7::S7_dispatch()
3. ├─dcmstan::bayesnet("appropriateness -> multiplicative_comparison\n appropriateness -> partitioning_iterating\n multiplicative_comparison -> referent_units\n partitioning_iterating -> referent_units")
4. │ └─dcmstan:::BAYESNET(model = "bayesnet", list(hierarchy = hierarchy))
5. │ └─S7::new_object(...)
6. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
7. └─dcmstan (local) `<BAYESNET>@model`(`<d::BAYES>`, "bayesnet")
── Error ('test-zzz-methods-get-parameters.R:1686:3'): warnings are produced for unnecessary arguments ──
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::dcm_specify(qmatrix = test_qmatrix) at test-zzz-methods-get-parameters.R:1686:3
2. │ ├─S7::check_is_S7(measurement_model, measurement)
3. │ │ └─S7::S7_inherits(x, class)
4. │ │ └─S7:::class_inherits(x, class)
5. │ └─dcmstan::lcdm()
6. │ └─dcmstan:::LCDM(model = "lcdm", list(max_interaction = max_interaction))
7. │ └─S7::new_object(...)
8. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
9. └─dcmstan (local) `<LCDM>@model`(`<dc::LCDM>`, "lcdm")
── Error ('test-zzz-methods-get-parameters.R:1709:3'): combining parameters in a specification works ──
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::dcm_specify(qmatrix = test_qmatrix) at test-zzz-methods-get-parameters.R:1709:3
2. │ ├─S7::check_is_S7(measurement_model, measurement)
3. │ │ └─S7::S7_inherits(x, class)
4. │ │ └─S7:::class_inherits(x, class)
5. │ └─dcmstan::lcdm()
6. │ └─dcmstan:::LCDM(model = "lcdm", list(max_interaction = max_interaction))
7. │ └─S7::new_object(...)
8. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
9. └─dcmstan (local) `<LCDM>@model`(`<dc::LCDM>`, "lcdm")
── Error ('test-zzz-methods-stan-data.R:16:5'): correct data objects are returned ──
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::dcm_specify(...) at test-zzz-methods-stan-data.R:16:5
2. │ └─S7::check_is_S7(measurement_model, measurement)
3. │ └─S7::S7_inherits(x, class)
4. │ └─S7:::class_inherits(x, class)
5. ├─base::do.call(combos$meas[i], args = list())
6. ├─dcmstan::lcdm()
7. │ └─dcmstan:::LCDM(model = "lcdm", list(max_interaction = max_interaction))
8. │ └─S7::new_object(...)
9. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
10. └─dcmstan (local) `<LCDM>@model`(`<dc::LCDM>`, "lcdm")
── Error ('test-zzz-methods-stan-data.R:39:3'): correct gqs objects are returned ──
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::dcm_specify(qmatrix = dcmdata::dtmr_qmatrix, identifier = "item") at test-zzz-methods-stan-data.R:39:3
2. │ ├─S7::check_is_S7(measurement_model, measurement)
3. │ │ └─S7::S7_inherits(x, class)
4. │ │ └─S7:::class_inherits(x, class)
5. │ └─dcmstan::lcdm()
6. │ └─dcmstan:::LCDM(model = "lcdm", list(max_interaction = max_interaction))
7. │ └─S7::new_object(...)
8. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
9. └─dcmstan (local) `<LCDM>@model`(`<dc::LCDM>`, "lcdm")
── Error ('test-zzz-methods-stan-data.R:86:3'): independent data objects are correct ──
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::dcm_specify(...) at test-zzz-methods-stan-data.R:86:3
2. │ ├─S7::check_is_S7(measurement_model, measurement)
3. │ │ └─S7::S7_inherits(x, class)
4. │ │ └─S7:::class_inherits(x, class)
5. │ └─dcmstan::lcdm()
6. │ └─dcmstan:::LCDM(model = "lcdm", list(max_interaction = max_interaction))
7. │ └─S7::new_object(...)
8. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
9. └─dcmstan (local) `<LCDM>@model`(`<dc::LCDM>`, "lcdm")
── Error ('test-zzz-methods-stan-data.R:107:3'): dina data objects are correct ──
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::dcm_specify(...) at test-zzz-methods-stan-data.R:107:3
2. │ └─S7::check_is_S7(measurement_model, measurement)
3. │ └─S7::S7_inherits(x, class)
4. │ └─S7:::class_inherits(x, class)
5. ├─dcmstan::dina()
6. │ └─dcmstan:::DINA(model = "dina")
7. │ └─S7::new_object(...)
8. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
9. └─dcmstan (local) `<DINA>@model`(`<dc::DINA>`, "dina")
── Error ('test-zzz-methods-stan-data.R:139:3'): dino data objects are correct ──
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::dcm_specify(...) at test-zzz-methods-stan-data.R:139:3
2. │ └─S7::check_is_S7(measurement_model, measurement)
3. │ └─S7::S7_inherits(x, class)
4. │ └─S7:::class_inherits(x, class)
5. ├─dcmstan::dino()
6. │ └─dcmstan:::DINO(model = "dino")
7. │ └─S7::new_object(...)
8. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
9. └─dcmstan (local) `<DINO>@model`(`<dc::DINO>`, "dino")
── Error ('test-zzz-methods-stan-data.R:179:3'): hdcm data objects are correct ──
Error: @model is read-only
Backtrace:
▆
1. ├─dcmstan::dcm_specify(...) at test-zzz-methods-stan-data.R:179:3
2. │ └─S7::check_is_S7(measurement_model, measurement)
3. │ └─S7::S7_inherits(x, class)
4. │ └─S7:::class_inherits(x, class)
5. ├─dcmstan::lcdm()
6. │ └─dcmstan:::LCDM(model = "lcdm", list(max_interaction = max_interaction))
7. │ └─S7::new_object(...)
8. │ └─S7::`prop<-`(`*tmp*`, name, check = FALSE, value = prop_setter_vals[[name]])
9. └─dcmstan (local) `<LCDM>@model`(`<dc::LCDM>`, "lcdm")
[ FAIL 53 | WARN 0 | SKIP 4 | PASS 114 ]
Error:
! Test failures.
Execution halted
Flavor: r-devel-linux-x86_64-fedora-gcc