CRAN Package Check Results for Package WeightIt

Last updated on 2025-09-19 03:50:17 CEST.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 1.4.0 21.43 569.77 591.20 ERROR
r-devel-linux-x86_64-debian-gcc 1.5.0 15.67 399.18 414.85 OK
r-devel-linux-x86_64-fedora-clang 1.5.0 918.97 OK
r-devel-linux-x86_64-fedora-gcc 1.5.0 931.35 OK
r-devel-windows-x86_64 1.4.0 20.00 497.00 517.00 OK
r-patched-linux-x86_64 1.4.0 27.16 505.09 532.25 ERROR
r-release-linux-x86_64 1.4.0 22.42 513.72 536.14 ERROR
r-release-macos-arm64 1.5.0 242.00 OK
r-release-macos-x86_64 1.5.0 592.00 OK
r-release-windows-x86_64 1.4.0 23.00 503.00 526.00 ERROR
r-oldrel-macos-arm64 1.5.0 229.00 ERROR
r-oldrel-macos-x86_64 1.5.0 550.00 ERROR
r-oldrel-windows-x86_64 1.4.0 32.00 667.00 699.00 ERROR

Check Details

Version: 1.4.0
Check: examples
Result: ERROR Running examples in ‘WeightIt-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: method_optweight > ### Title: Optimization-Based Weighting > ### Aliases: method_optweight > > ### ** Examples > > ## Don't show: > if (all(sapply(c("optweight", "osqp"), requireNamespace, quietly = TRUE))) (if (getRversion() >= "3.4") withAutoprint else force)({ # examplesIf + ## End(Don't show) + data("lalonde", package = "cobalt") + + #Balancing covariates between treatment groups (binary) + (W1 <- weightit(treat ~ age + educ + married + + nodegree + re74, data = lalonde, + method = "optweight", estimand = "ATT", + tols = 0)) + summary(W1) + cobalt::bal.tab(W1) + plot(W1) + + #Balancing covariates with respect to race (multi-category) + (W2 <- weightit(race ~ age + educ + married + + nodegree + re74, data = lalonde, + method = "optweight", estimand = "ATE", + tols = .01)) + summary(W2) + cobalt::bal.tab(W2) + plot(W2) + + #Balancing covariates with respect to re75 (continuous) + ## Don't show: + }) # examplesIf > data("lalonde", package = "cobalt") > (W1 <- weightit(treat ~ age + educ + married + nodegree + re74, data = lalonde, + method = "optweight", estimand = "ATT", tols = 0)) Error in process_tols(...) : unused argument (stop = TRUE) Calls: <Anonymous> ... weightit.fit -> do.call -> weightit2optweight -> <Anonymous> Execution halted Examples with CPU (user + system) or elapsed time > 5s user system elapsed calibrate 4.025 0.342 5.181 Flavor: r-devel-linux-x86_64-debian-clang

Version: 1.4.0
Check: examples
Result: ERROR Running examples in ‘WeightIt-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: method_optweight > ### Title: Optimization-Based Weighting > ### Aliases: method_optweight > > ### ** Examples > > ## Don't show: > if (all(sapply(c("optweight", "osqp"), requireNamespace, quietly = TRUE))) (if (getRversion() >= "3.4") withAutoprint else force)({ # examplesIf + ## End(Don't show) + data("lalonde", package = "cobalt") + + #Balancing covariates between treatment groups (binary) + (W1 <- weightit(treat ~ age + educ + married + + nodegree + re74, data = lalonde, + method = "optweight", estimand = "ATT", + tols = 0)) + summary(W1) + cobalt::bal.tab(W1) + plot(W1) + + #Balancing covariates with respect to race (multi-category) + (W2 <- weightit(race ~ age + educ + married + + nodegree + re74, data = lalonde, + method = "optweight", estimand = "ATE", + tols = .01)) + summary(W2) + cobalt::bal.tab(W2) + plot(W2) + + #Balancing covariates with respect to re75 (continuous) + ## Don't show: + }) # examplesIf > data("lalonde", package = "cobalt") > (W1 <- weightit(treat ~ age + educ + married + nodegree + re74, data = lalonde, + method = "optweight", estimand = "ATT", tols = 0)) Error in process_tols(...) : unused argument (stop = TRUE) Calls: <Anonymous> ... weightit.fit -> do.call -> weightit2optweight -> <Anonymous> Execution halted Examples with CPU (user + system) or elapsed time > 5s user system elapsed calibrate 3.874 0.096 5.547 Flavor: r-patched-linux-x86_64

Version: 1.4.0
Check: examples
Result: ERROR Running examples in ‘WeightIt-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: method_optweight > ### Title: Optimization-Based Weighting > ### Aliases: method_optweight > > ### ** Examples > > ## Don't show: > if (all(sapply(c("optweight", "osqp"), requireNamespace, quietly = TRUE))) (if (getRversion() >= "3.4") withAutoprint else force)({ # examplesIf + ## End(Don't show) + data("lalonde", package = "cobalt") + + #Balancing covariates between treatment groups (binary) + (W1 <- weightit(treat ~ age + educ + married + + nodegree + re74, data = lalonde, + method = "optweight", estimand = "ATT", + tols = 0)) + summary(W1) + cobalt::bal.tab(W1) + plot(W1) + + #Balancing covariates with respect to race (multi-category) + (W2 <- weightit(race ~ age + educ + married + + nodegree + re74, data = lalonde, + method = "optweight", estimand = "ATE", + tols = .01)) + summary(W2) + cobalt::bal.tab(W2) + plot(W2) + + #Balancing covariates with respect to re75 (continuous) + ## Don't show: + }) # examplesIf > data("lalonde", package = "cobalt") > (W1 <- weightit(treat ~ age + educ + married + nodegree + re74, data = lalonde, + method = "optweight", estimand = "ATT", tols = 0)) Error in process_tols(...) : unused argument (stop = TRUE) Calls: <Anonymous> ... weightit.fit -> do.call -> weightit2optweight -> <Anonymous> Execution halted Flavor: r-release-linux-x86_64

Version: 1.4.0
Check: examples
Result: ERROR Running examples in 'WeightIt-Ex.R' failed The error most likely occurred in: > ### Name: method_optweight > ### Title: Optimization-Based Weighting > ### Aliases: method_optweight > > ### ** Examples > > ## Don't show: > if (all(sapply(c("optweight", "osqp"), requireNamespace, quietly = TRUE))) (if (getRversion() >= "3.4") withAutoprint else force)({ # examplesIf + ## End(Don't show) + data("lalonde", package = "cobalt") + + #Balancing covariates between treatment groups (binary) + (W1 <- weightit(treat ~ age + educ + married + + nodegree + re74, data = lalonde, + method = "optweight", estimand = "ATT", + tols = 0)) + summary(W1) + cobalt::bal.tab(W1) + plot(W1) + + #Balancing covariates with respect to race (multi-category) + (W2 <- weightit(race ~ age + educ + married + + nodegree + re74, data = lalonde, + method = "optweight", estimand = "ATE", + tols = .01)) + summary(W2) + cobalt::bal.tab(W2) + plot(W2) + + #Balancing covariates with respect to re75 (continuous) + ## Don't show: + }) # examplesIf > data("lalonde", package = "cobalt") > (W1 <- weightit(treat ~ age + educ + married + nodegree + re74, data = lalonde, + method = "optweight", estimand = "ATT", tols = 0)) Error in process_tols(...) : unused argument (stop = TRUE) Calls: <Anonymous> ... weightit.fit -> do.call -> weightit2optweight -> <Anonymous> Execution halted Flavors: r-release-windows-x86_64, r-oldrel-windows-x86_64

Version: 1.5.0
Check: tests
Result: ERROR Running ‘testthat.R’ [72s/88s] 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(WeightIt) > > test_check("WeightIt") [ FAIL 4 | WARN 0 | SKIP 9 | PASS 1260 ] ══ Skipped tests (9) ═══════════════════════════════════════════════════════════ • !capabilities("long.double") is TRUE (6): 'test-update.R:2:3', 'test-update.R:118:3', 'test-update.R:178:3', 'test-update.R:325:3', 'test-update.R:470:3', 'test-update.R:615:3' • On CRAN (3): 'test-method_cbps.R:2:3', 'test-method_cbps.R:108:3', 'test-method_cbps.R:197:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Failure ('test-moments.R:22:7'): moments works as expected, binary ────────── Expected `{ ... }` to run without any conditions. i Actually got a <rlib_error_package_not_found> with text: The package "optweight" (>= 1.0.0) is required. ── Failure ('test-moments.R:31:7'): moments works as expected, binary ────────── Expected `{ ... }` to run without any conditions. i Actually got a <rlib_error_package_not_found> with text: The package "optweight" (>= 1.0.0) is required. ── Failure ('test-moments.R:86:7'): moments works as expected, multi ─────────── Expected `{ ... }` to run without any conditions. i Actually got a <rlib_error_package_not_found> with text: The package "optweight" (>= 1.0.0) is required. ── Failure ('test-moments.R:95:7'): moments works as expected, multi ─────────── Expected `{ ... }` to run without any conditions. i Actually got a <rlib_error_package_not_found> with text: The package "optweight" (>= 1.0.0) is required. [ FAIL 4 | WARN 0 | SKIP 9 | PASS 1260 ] Error: Test failures Execution halted Flavor: r-oldrel-macos-arm64

Version: 1.5.0
Check: tests
Result: ERROR Running ‘testthat.R’ [190s/296s] 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(WeightIt) > > test_check("WeightIt") [ FAIL 4 | WARN 0 | SKIP 3 | PASS 2055 ] ══ Skipped tests (3) ═══════════════════════════════════════════════════════════ • On CRAN (3): 'test-method_cbps.R:2:3', 'test-method_cbps.R:108:3', 'test-method_cbps.R:197:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Failure ('test-moments.R:22:7'): moments works as expected, binary ────────── Expected `{ ... }` to run without any conditions. i Actually got a <rlib_error_package_not_found> with text: The package "optweight" (>= 1.0.0) is required. ── Failure ('test-moments.R:31:7'): moments works as expected, binary ────────── Expected `{ ... }` to run without any conditions. i Actually got a <rlib_error_package_not_found> with text: The package "optweight" (>= 1.0.0) is required. ── Failure ('test-moments.R:86:7'): moments works as expected, multi ─────────── Expected `{ ... }` to run without any conditions. i Actually got a <rlib_error_package_not_found> with text: The package "optweight" (>= 1.0.0) is required. ── Failure ('test-moments.R:95:7'): moments works as expected, multi ─────────── Expected `{ ... }` to run without any conditions. i Actually got a <rlib_error_package_not_found> with text: The package "optweight" (>= 1.0.0) is required. [ FAIL 4 | WARN 0 | SKIP 3 | PASS 2055 ] Error: Test failures Execution halted Flavor: r-oldrel-macos-x86_64