CRAN Package Check Results for Package DeclareDesign

Last updated on 2026-10-22 20:54:53 CEST.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 1.1.1 7.47 219.04 226.51 NOTE
r-devel-linux-x86_64-debian-gcc 1.1.1 5.12 149.02 154.14 NOTE
r-devel-linux-x86_64-fedora-clang 1.1.1 147.45 ERROR
r-devel-linux-x86_64-fedora-gcc 1.1.1 6.00 153.59 159.59 ERROR
r-devel-windows-x86_64 1.1.1 14.00 214.00 228.00 NOTE
r-patched-linux-x86_64 1.1.1 7.76 205.06 212.82 OK
r-release-linux-x86_64 1.1.1 7.36 206.81 214.17 OK
r-release-macos-arm64 1.1.1 3.00 61.00 64.00 OK
r-release-macos-x86_64 1.1.1 8.00 359.00 367.00 OK
r-release-windows-x86_64 1.1.1 12.00 210.00 222.00 OK
r-oldrel-macos-arm64 1.1.1 3.00 66.00 69.00 OK
r-oldrel-macos-x86_64 1.1.1 9.00 372.00 381.00 OK
r-oldrel-windows-x86_64 1.1.1 18.00 289.00 307.00 OK

Check Details

Version: 1.1.1
Check: R code for possible problems
Result: NOTE Found calls to structure() using deprecated special names: DeclareDesign/tests/testthat/test-describe_variable.R (.Names: 1) DeclareDesign/tests/testthat/test-diagnosands.R (.Label: 3) DeclareDesign/tests/testthat/test-estimands.R (.Names: 6, .Label: 1) DeclareDesign/tests/testthat/test-expand-design.R (.Dim: 4, .Dimnames: 4) DeclareDesign/tests/testthat/test-model.R (.Label: 1) DeclareDesign/tests/testthat/test-reshape-diagnosis.R (.Label: 1) DeclareDesign/tests/testthat/test-scaffolding.R (.Label: 1, .Names: 1) '.Names' should be changed to 'names'. '.Label' should be changed to 'levels'. '.Dim' should be changed to 'dim'. '.Dimnames' should be changed to 'dimnames'. Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-x86_64

Version: 1.1.1
Check: tests
Result: ERROR Running ‘testthat.R’ [70s/86s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > library(DeclareDesign) Loading required package: randomizr Loading required package: fabricatr Loading required package: estimatr > > for (pkg in c("AER", "betareg", "biglm", "coin", "future.apply", "gam", "Matching", "reshape2", "sf")) { + if (requireNamespace(pkg, quietly = TRUE)) library(pkg, character.only = TRUE) + } Loading required package: car Loading required package: carData Loading required package: lmtest Loading required package: zoo Attaching package: 'zoo' The following objects are masked from 'package:base': as.Date, as.Date.numeric Loading required package: sandwich Loading required package: survival Loading required package: DBI Attaching package: 'coin' The following object is masked from 'package:testthat': expectation Loading required package: future Attaching package: 'future' The following object is masked from 'package:survival': cluster The following object is masked from 'package:lmtest': reset Loading required package: splines Loading required package: foreach Loaded gam 1.22-7 Loading required package: MASS ## ## Matching (Version 4.10-15, Build Date: 2024-10-14) ## See https://www.jsekhon.com for additional documentation. ## Please cite software as: ## Jasjeet S. Sekhon. 2011. ``Multivariate and Propensity Score Matching ## Software with Automated Balance Optimization: The Matching package for R.'' ## Journal of Statistical Software, 42(7): 1-52. ## Linking to GEOS 3.14.1, GDAL 3.12.4, PROJ 9.8.1; sf_use_s2() is TRUE > > test_check("DeclareDesign") Saving _problems/test-conduct-custom-49.R Saving _problems/test-diagnose-design-371.R Error : No estimates or inquiries were declared, so design cannot be simulated. Saving _problems/test-measurement-39.R Saving _problems/test-population-101.R Saving _problems/test-population-114.R Saving _problems/test-potential-outcomes-160.R [ FAIL 6 | WARN 20 | SKIP 7 | PASS 641 ] ══ Skipped tests (7) ═══════════════════════════════════════════════════════════ • On CRAN (1): 'test-reshape-diagnosis.R:123:3' • test requires updated DesignLbrary (6): 'test-design-library.R:7:3', 'test-design-library.R:37:3', 'test-design-library.R:46:3', 'test-design-library.R:136:3', 'test-simulate-design.R:121:3', 'test-simulate-design.R:137:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Failure ('test-conduct-custom.R:49:3'): draw_data does not run inquiry/estimator ── Expected `draw_data(design)` to be identical to `sleep`. Differences: Attributes: < Component "class": Lengths (3, 1) differ (string compare on first 1) > Attributes: < Component "class": 1 string mismatch > ── Failure ('test-diagnose-design.R:371:3'): diagnose_design can generate and use grouping variables ── Expected `dim(tidy(diagnosis))` to equal `c(14, 11)`. Differences: 1/2 mismatches [1] 7 - 14 == -7 ── Failure ('test-measurement.R:39:3'): declare_measurement works ────────────── Expected `A` to equal `draw_data(design)`. Differences: Attributes: < Component "class": Lengths (1, 3) differ (string compare on first 1) > Attributes: < Component "class": 1 string mismatch > ── Failure ('test-population.R:101:3'): use custom data with declare_model ───── Expected `region_data` to be identical to `d1`. Differences: Attributes: < Component "class": Lengths (1, 3) differ (string compare on first 1) > Attributes: < Component "class": 1 string mismatch > ── Failure ('test-population.R:114:3'): use custom data with declare_model ───── Expected `region_data` to be identical to `d2`. Differences: Attributes: < Component "class": Lengths (1, 3) differ (string compare on first 1) > Attributes: < Component "class": 1 string mismatch > ── Failure ('test-potential-outcomes.R:118:3'): POs at a higher level ────────── Expected `head(my_potential_outcomes_discrete(pop))` to equal `structure(...)`. Differences: Attributes: < Component "class": Lengths (3, 1) differ (string compare on first 1) > Attributes: < Component "class": 1 string mismatch > [ FAIL 6 | WARN 20 | SKIP 7 | PASS 641 ] Error: ! Test failures. Execution halted Flavor: r-devel-linux-x86_64-fedora-clang

Version: 1.1.1
Check: tests
Result: ERROR Running ‘testthat.R’ [79s/183s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > library(DeclareDesign) Loading required package: randomizr Loading required package: fabricatr Loading required package: estimatr > > for (pkg in c("AER", "betareg", "biglm", "coin", "future.apply", "gam", "Matching", "reshape2", "sf")) { + if (requireNamespace(pkg, quietly = TRUE)) library(pkg, character.only = TRUE) + } Loading required package: car Loading required package: carData Loading required package: lmtest Loading required package: zoo Attaching package: 'zoo' The following objects are masked from 'package:base': as.Date, as.Date.numeric Loading required package: sandwich Loading required package: survival Loading required package: DBI Attaching package: 'coin' The following object is masked from 'package:testthat': expectation Loading required package: future Attaching package: 'future' The following object is masked from 'package:survival': cluster The following object is masked from 'package:lmtest': reset Loading required package: splines Loading required package: foreach Loaded gam 1.22-7 Loading required package: MASS ## ## Matching (Version 4.10-15, Build Date: 2024-10-14) ## See https://www.jsekhon.com for additional documentation. ## Please cite software as: ## Jasjeet S. Sekhon. 2011. ``Multivariate and Propensity Score Matching ## Software with Automated Balance Optimization: The Matching package for R.'' ## Journal of Statistical Software, 42(7): 1-52. ## Linking to GEOS 3.14.1, GDAL 3.12.4, PROJ 9.8.1; sf_use_s2() is TRUE > > test_check("DeclareDesign") Saving _problems/test-conduct-custom-49.R Saving _problems/test-diagnose-design-371.R Error : No estimates or inquiries were declared, so design cannot be simulated. Saving _problems/test-measurement-39.R Saving _problems/test-population-101.R Saving _problems/test-population-114.R Saving _problems/test-potential-outcomes-160.R [ FAIL 6 | WARN 20 | SKIP 7 | PASS 641 ] ══ Skipped tests (7) ═══════════════════════════════════════════════════════════ • On CRAN (1): 'test-reshape-diagnosis.R:123:3' • test requires updated DesignLbrary (6): 'test-design-library.R:7:3', 'test-design-library.R:37:3', 'test-design-library.R:46:3', 'test-design-library.R:136:3', 'test-simulate-design.R:121:3', 'test-simulate-design.R:137:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Failure ('test-conduct-custom.R:49:3'): draw_data does not run inquiry/estimator ── Expected `draw_data(design)` to be identical to `sleep`. Differences: Attributes: < Component "class": Lengths (3, 1) differ (string compare on first 1) > Attributes: < Component "class": 1 string mismatch > ── Failure ('test-diagnose-design.R:371:3'): diagnose_design can generate and use grouping variables ── Expected `dim(tidy(diagnosis))` to equal `c(14, 11)`. Differences: 1/2 mismatches [1] 7 - 14 == -7 ── Failure ('test-measurement.R:39:3'): declare_measurement works ────────────── Expected `A` to equal `draw_data(design)`. Differences: Attributes: < Component "class": Lengths (1, 3) differ (string compare on first 1) > Attributes: < Component "class": 1 string mismatch > ── Failure ('test-population.R:101:3'): use custom data with declare_model ───── Expected `region_data` to be identical to `d1`. Differences: Attributes: < Component "class": Lengths (1, 3) differ (string compare on first 1) > Attributes: < Component "class": 1 string mismatch > ── Failure ('test-population.R:114:3'): use custom data with declare_model ───── Expected `region_data` to be identical to `d2`. Differences: Attributes: < Component "class": Lengths (1, 3) differ (string compare on first 1) > Attributes: < Component "class": 1 string mismatch > ── Failure ('test-potential-outcomes.R:118:3'): POs at a higher level ────────── Expected `head(my_potential_outcomes_discrete(pop))` to equal `structure(...)`. Differences: Attributes: < Component "class": Lengths (3, 1) differ (string compare on first 1) > Attributes: < Component "class": 1 string mismatch > [ FAIL 6 | WARN 20 | SKIP 7 | PASS 641 ] Error: ! Test failures. Execution halted Flavor: r-devel-linux-x86_64-fedora-gcc