The hardware and bandwidth for this mirror is donated by dogado GmbH, the Webhosting and Full Service-Cloud Provider. Check out our Wordpress Tutorial.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]dogado.de.

CRAN Package Check Results for Package gtregression

Last updated on 2026-08-10 10:50:32 CEST.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 1.0.0 11.31 154.16 165.47 ERROR
r-devel-linux-x86_64-debian-gcc 1.0.0 7.45 109.32 116.77 ERROR
r-devel-linux-x86_64-fedora-clang 1.0.0 113.81 ERROR
r-devel-linux-x86_64-fedora-gcc 1.0.0 115.82 ERROR
r-devel-windows-x86_64 1.0.0 15.00 151.00 166.00 ERROR
r-patched-linux-x86_64 1.0.0 9.28 142.51 151.79 ERROR
r-release-linux-x86_64 1.0.0 8.89 143.34 152.23 ERROR
r-release-macos-arm64 1.0.0 3.00 77.00 80.00 OK
r-release-macos-x86_64 1.0.0 8.00 345.00 353.00 OK
r-release-windows-x86_64 1.0.0 13.00 149.00 162.00 ERROR
r-oldrel-macos-arm64 1.0.0 OK
r-oldrel-macos-x86_64 1.0.0 6.00 339.00 345.00 OK
r-oldrel-windows-x86_64 1.0.0 19.00 197.00 216.00 ERROR

Check Details

Version: 1.0.0
Check: examples
Result: ERROR Running examples in ‘gtregression-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: check_collinearity > ### Title: Check Collinearity Using VIF for Fitted Models > ### Aliases: check_collinearity > > ### ** Examples > > if (requireNamespace("gtregression", quietly = TRUE) && + requireNamespace("mlbench", quietly = TRUE) && + getRversion() >= "4.1.0") { + data(PimaIndiansDiabetes2, package = "mlbench") + pima <- PimaIndiansDiabetes2 |> dplyr::filter(!is.na(diabetes)) + pima$diabetes <- ifelse(pima$diabetes == "pos", 1, 0) + fit <- multi_reg(pima, + outcome = "diabetes", + exposures = c("age", "mass", "glucose"), + approach = "logit" + ) + check_collinearity(fit) + } Warning in data(PimaIndiansDiabetes2, package = "mlbench") : data set ‘PimaIndiansDiabetes2’ not found Error: object 'PimaIndiansDiabetes2' not found Execution halted Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-patched-linux-x86_64, r-release-linux-x86_64

Version: 1.0.0
Check: tests
Result: ERROR Running ‘testthat.R’ [62s/79s] 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(gtregression) > > test_check("gtregression") Attaching package: 'dplyr' The following objects are masked from 'package:stats': filter, lag The following objects are masked from 'package:base': intersect, setdiff, setequal, union Saving _problems/test-check_collinearity-9.R Saving _problems/test-check_collinearity-29.R Saving _problems/test-check_convergence-19.R Saving _problems/test-check_convergence-113.R # A tibble: 18 x 6 Variable Type `Missing (%)` Unique Levels Compatibility <chr> <chr> <chr> <int> <chr> <chr> 1 pregnant numeric 0% 17 - compatible 2 glucose numeric 0.7% 135 - compatible 3 pressure numeric 4.6% 46 - compatible 4 triceps numeric 29.6% 50 - compatible 5 insulin numeric 48.7% 185 - compatible 6 mass numeric 1.4% 247 - compatible 7 pedigree numeric 0% 517 - compatible 8 age numeric 0% 52 - compatible 9 diabetes numeric 0% 2 - maybe 10 bmi factor 1.4% 3 Normal, Overweight, ~ compatible 11 age_cat factor 0% 3 Young, Middle-aged, ~ compatible 12 npreg_cat factor 0% 2 Low parity, High par~ compatible 13 glucose_cat factor 0.7% 2 Normal, High compatible 14 bp_cat factor 4.6% 2 Normal, High compatible 15 triceps_cat factor 29.6% 2 Normal, High compatible 16 insulin_cat factor 48.7% 3 Low, Normal, High compatible 17 dpf_cat factor 0% 3 Low Genetic Risk, Mo~ compatible 18 diabetes_cat factor 0% 2 Diabetes negative, D~ compatible Interpretation notes: - compatible: ready to use in regression - maybe: require transformation to factor or check no of levels - incompatible: not usable as-is (e.g., all NA, <2 levels) Saving _problems/test-fit_multi_model-23.R Saving _problems/test-fit_uni_model-17.R Saving _problems/test-fit_uni_model-59.R Saving _problems/test-identify_confounder-27.R Saving _problems/test-interaction_models-32.R Saving _problems/test-interaction_models-64.R Saving _problems/test-interaction_models-96.R The number rows in the tables to be merged do not match, which may result in rows appearing out of order. i See `tbl_merge()` (`?gtsummary::tbl_merge()`) help file for details. Use `quiet=TRUE` to silence message. The number rows in the tables to be merged do not match, which may result in rows appearing out of order. i See `tbl_merge()` (`?gtsummary::tbl_merge()`) help file for details. Use `quiet=TRUE` to silence message. Saving _problems/test-multi_reg-50.R Saving _problems/test-plot_reg-43.R Saving _problems/test-plot_reg_combine-56.R Table saved at: /home/hornik/tmp/scratch/RtmpuzKMLc/regression_results.docx `height` was translated to `width`. Plot saved at: /home/hornik/tmp/scratch/RtmpuzKMLc/plot_png.png `height` was translated to `width`. Plot saved at: /home/hornik/tmp/scratch/RtmpuzKMLc/plot_pdf.pdf `height` was translated to `width`. Plot saved at: /home/hornik/tmp/scratch/RtmpuzKMLc/plot_jpg.jpg `height` was translated to `width`. Word document saved at: /home/hornik/tmp/scratch/RtmpuzKMLc/final_report.docx If tables or plots extend beyond the page, consider switching to landscape layout in Word (Layout > Orientation > Landscape). Attaching package: 'MASS' The following object is masked from 'package:gtsummary': select The following object is masked from 'package:dplyr': select Saving _problems/test-select_models-25.R Saving _problems/test-stratified_multi_reg-32.R Saving _problems/test-stratified_multi_reg-75.R Saving _problems/test-stratified_multi_reg-120.R Saving _problems/test-stratified_multi_reg-167.R Saving _problems/test-stratified_uni_reg-21.R Saving _problems/test-stratified_uni_reg-46.R Saving _problems/test-stratified_uni_reg-71.R Saving _problems/test-stratified_uni_reg-106.R Saving _problems/test-stratified_uni_reg-142.R Saving _problems/test-stratified_uni_reg-167.R Saving _problems/test-uni_reg-10.R Saving _problems/test-uni_reg-70.R [ FAIL 27 | WARN 29 | SKIP 1 | PASS 92 ] ══ Skipped tests (1) ═══════════════════════════════════════════════════════════ • On CRAN (1): 'test-dissect.R:1:1' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-check_collinearity.R:7:3'): check_collinearity works correctly for multivariable models ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─dplyr::mutate(...) at test-check_collinearity.R:7:3 2. └─dplyr::filter(PimaIndiansDiabetes2, !is.na(diabetes)) ── Error ('test-check_collinearity.R:27:3'): check_collinearity throws error for univariate models ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─dplyr::mutate(...) at test-check_collinearity.R:27:3 2. └─dplyr::filter(PimaIndiansDiabetes2, !is.na(diabetes)) ── Error ('test-check_convergence.R:4:3'): check_convergence runs correctly for valid approaches ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-check_convergence.R:4:3 ── Error ('test-check_convergence.R:98:3'): check_convergence handles model fitting failure ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-check_convergence.R:98:3 ── Error ('test-fit_multi_model.R:7:3'): .fit_multi_model returns correct model class for each approach ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─dplyr::filter(...) at test-fit_multi_model.R:7:3 2. └─dplyr::mutate(...) ── Error ('test-fit_uni_model.R:7:3'): .fit_uni_model returns correct model class (PimaIndiansDiabetes2) ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─dplyr::filter(...) at test-fit_uni_model.R:7:3 2. └─dplyr::mutate(...) ── Error ('test-fit_uni_model.R:55:3'): .fit_uni_model handles model fitting failure gracefully ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-fit_uni_model.R:55:3 ── Error ('test-identify_confounder.R:6:3'): identify_confounder works across approaches using change-in-estimate method ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-identify_confounder.R:6:3 ── Error ('test-interaction_models.R:6:3'): interaction_models returns a list with expected names ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─dplyr::mutate(...) at test-interaction_models.R:6:3 2. └─dplyr::mutate(...) ── Error ('test-interaction_models.R:52:3'): interaction_models handles robpoisson approach ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─dplyr::mutate(...) at test-interaction_models.R:52:3 2. └─dplyr::mutate(...) ── Error ('test-interaction_models.R:84:3'): interaction_models errors with invalid approach ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─dplyr::mutate(...) at test-interaction_models.R:84:3 2. └─dplyr::mutate(...) ── Error ('test-multi_reg.R:11:3'): multi_reg computes estimates correctly across approaches ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-multi_reg.R:11:3 ── Error ('test-plot_reg.R:9:3'): plot_reg works with default settings and correct X-axis labels ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─dplyr::mutate(...) at test-plot_reg.R:9:3 2. └─dplyr::mutate(...) ── Error ('test-plot_reg_combine.R:9:3'): plot_reg_combine works with various options ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-plot_reg_combine.R:9:3 ── Error ('test-select_models.R:8:3'): select_models works for valid approaches and directions ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-select_models.R:8:3 ── Error ('test-stratified_multi_reg.R:9:3'): stratified_multi_reg returns a gtsummary tbl_merge object ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-stratified_multi_reg.R:9:3 ── Error ('test-stratified_multi_reg.R:61:3'): stratified_multi_reg excludes NA values in stratifier ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-stratified_multi_reg.R:61:3 ── Error ('test-stratified_multi_reg.R:109:3'): stratified_multi_reg runs with robpoisson and produces estimates ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-stratified_multi_reg.R:109:3 ── Error ('test-stratified_multi_reg.R:153:3'): stratified_multi_reg works with negbin ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─dplyr::filter(...) at test-stratified_multi_reg.R:153:3 2. └─dplyr::mutate(...) ── Error ('test-stratified_uni_reg.R:4:3'): stratified_uni_reg returns a gtsummary tbl_merge object with logit ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─dplyr::mutate(...) at test-stratified_uni_reg.R:4:3 2. └─dplyr::mutate(...) ── Error ('test-stratified_uni_reg.R:40:3'): stratified_uni_reg excludes NA values in stratifier ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-stratified_uni_reg.R:40:3 ── Error ('test-stratified_uni_reg.R:67:3'): stratified_uni_reg errors for invalid inputs ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-stratified_uni_reg.R:67:3 ── Error ('test-stratified_uni_reg.R:100:3'): stratified_uni_reg works with robpoisson ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-stratified_uni_reg.R:100:3 ── Error ('test-stratified_uni_reg.R:126:3'): stratified_uni_reg works with negbin ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─dplyr::filter(...) at test-stratified_uni_reg.R:126:3 2. └─dplyr::mutate(...) ── Error ('test-stratified_uni_reg.R:163:3'): stratified_uni_reg errors when no valid strata exist ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-stratified_uni_reg.R:163:3 ── Error ('test-uni_reg.R:6:3'): uni_reg returns a gtsummary object and works with binary data ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─tidyr::drop_na(...) at test-uni_reg.R:6:3 2. └─dplyr::mutate(...) ── Error ('test-uni_reg.R:70:3'): uni_reg$ accessors return correct components ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─tidyr::drop_na(PimaIndiansDiabetes2) at test-uni_reg.R:70:3 [ FAIL 27 | WARN 29 | SKIP 1 | PASS 92 ] Error: ! Test failures. Execution halted Flavor: r-devel-linux-x86_64-debian-clang

Version: 1.0.0
Check: tests
Result: ERROR Running ‘testthat.R’ [42s/52s] 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(gtregression) > > test_check("gtregression") Attaching package: 'dplyr' The following objects are masked from 'package:stats': filter, lag The following objects are masked from 'package:base': intersect, setdiff, setequal, union Saving _problems/test-check_collinearity-9.R Saving _problems/test-check_collinearity-29.R Saving _problems/test-check_convergence-19.R Saving _problems/test-check_convergence-113.R # A tibble: 18 x 6 Variable Type `Missing (%)` Unique Levels Compatibility <chr> <chr> <chr> <int> <chr> <chr> 1 pregnant numeric 0% 17 - compatible 2 glucose numeric 0.7% 135 - compatible 3 pressure numeric 4.6% 46 - compatible 4 triceps numeric 29.6% 50 - compatible 5 insulin numeric 48.7% 185 - compatible 6 mass numeric 1.4% 247 - compatible 7 pedigree numeric 0% 517 - compatible 8 age numeric 0% 52 - compatible 9 diabetes numeric 0% 2 - maybe 10 bmi factor 1.4% 3 Normal, Overweight, ~ compatible 11 age_cat factor 0% 3 Young, Middle-aged, ~ compatible 12 npreg_cat factor 0% 2 Low parity, High par~ compatible 13 glucose_cat factor 0.7% 2 Normal, High compatible 14 bp_cat factor 4.6% 2 Normal, High compatible 15 triceps_cat factor 29.6% 2 Normal, High compatible 16 insulin_cat factor 48.7% 3 Low, Normal, High compatible 17 dpf_cat factor 0% 3 Low Genetic Risk, Mo~ compatible 18 diabetes_cat factor 0% 2 Diabetes negative, D~ compatible Interpretation notes: - compatible: ready to use in regression - maybe: require transformation to factor or check no of levels - incompatible: not usable as-is (e.g., all NA, <2 levels) Saving _problems/test-fit_multi_model-23.R Saving _problems/test-fit_uni_model-17.R Saving _problems/test-fit_uni_model-59.R Saving _problems/test-identify_confounder-27.R Saving _problems/test-interaction_models-32.R Saving _problems/test-interaction_models-64.R Saving _problems/test-interaction_models-96.R The number rows in the tables to be merged do not match, which may result in rows appearing out of order. i See `tbl_merge()` (`?gtsummary::tbl_merge()`) help file for details. Use `quiet=TRUE` to silence message. The number rows in the tables to be merged do not match, which may result in rows appearing out of order. i See `tbl_merge()` (`?gtsummary::tbl_merge()`) help file for details. Use `quiet=TRUE` to silence message. Saving _problems/test-multi_reg-50.R Saving _problems/test-plot_reg-43.R Saving _problems/test-plot_reg_combine-56.R Table saved at: /home/hornik/tmp/scratch/Rtmp2CxfAH/regression_results.docx `height` was translated to `width`. Plot saved at: /home/hornik/tmp/scratch/Rtmp2CxfAH/plot_png.png `height` was translated to `width`. Plot saved at: /home/hornik/tmp/scratch/Rtmp2CxfAH/plot_pdf.pdf `height` was translated to `width`. Plot saved at: /home/hornik/tmp/scratch/Rtmp2CxfAH/plot_jpg.jpg `height` was translated to `width`. Word document saved at: /home/hornik/tmp/scratch/Rtmp2CxfAH/final_report.docx If tables or plots extend beyond the page, consider switching to landscape layout in Word (Layout > Orientation > Landscape). Attaching package: 'MASS' The following object is masked from 'package:gtsummary': select The following object is masked from 'package:dplyr': select Saving _problems/test-select_models-25.R Saving _problems/test-stratified_multi_reg-32.R Saving _problems/test-stratified_multi_reg-75.R Saving _problems/test-stratified_multi_reg-120.R Saving _problems/test-stratified_multi_reg-167.R Saving _problems/test-stratified_uni_reg-21.R Saving _problems/test-stratified_uni_reg-46.R Saving _problems/test-stratified_uni_reg-71.R Saving _problems/test-stratified_uni_reg-106.R Saving _problems/test-stratified_uni_reg-142.R Saving _problems/test-stratified_uni_reg-167.R Saving _problems/test-uni_reg-10.R Saving _problems/test-uni_reg-70.R [ FAIL 27 | WARN 29 | SKIP 1 | PASS 92 ] ══ Skipped tests (1) ═══════════════════════════════════════════════════════════ • On CRAN (1): 'test-dissect.R:1:1' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-check_collinearity.R:7:3'): check_collinearity works correctly for multivariable models ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─dplyr::mutate(...) at test-check_collinearity.R:7:3 2. └─dplyr::filter(PimaIndiansDiabetes2, !is.na(diabetes)) ── Error ('test-check_collinearity.R:27:3'): check_collinearity throws error for univariate models ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─dplyr::mutate(...) at test-check_collinearity.R:27:3 2. └─dplyr::filter(PimaIndiansDiabetes2, !is.na(diabetes)) ── Error ('test-check_convergence.R:4:3'): check_convergence runs correctly for valid approaches ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-check_convergence.R:4:3 ── Error ('test-check_convergence.R:98:3'): check_convergence handles model fitting failure ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-check_convergence.R:98:3 ── Error ('test-fit_multi_model.R:7:3'): .fit_multi_model returns correct model class for each approach ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─dplyr::filter(...) at test-fit_multi_model.R:7:3 2. └─dplyr::mutate(...) ── Error ('test-fit_uni_model.R:7:3'): .fit_uni_model returns correct model class (PimaIndiansDiabetes2) ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─dplyr::filter(...) at test-fit_uni_model.R:7:3 2. └─dplyr::mutate(...) ── Error ('test-fit_uni_model.R:55:3'): .fit_uni_model handles model fitting failure gracefully ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-fit_uni_model.R:55:3 ── Error ('test-identify_confounder.R:6:3'): identify_confounder works across approaches using change-in-estimate method ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-identify_confounder.R:6:3 ── Error ('test-interaction_models.R:6:3'): interaction_models returns a list with expected names ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─dplyr::mutate(...) at test-interaction_models.R:6:3 2. └─dplyr::mutate(...) ── Error ('test-interaction_models.R:52:3'): interaction_models handles robpoisson approach ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─dplyr::mutate(...) at test-interaction_models.R:52:3 2. └─dplyr::mutate(...) ── Error ('test-interaction_models.R:84:3'): interaction_models errors with invalid approach ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─dplyr::mutate(...) at test-interaction_models.R:84:3 2. └─dplyr::mutate(...) ── Error ('test-multi_reg.R:11:3'): multi_reg computes estimates correctly across approaches ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-multi_reg.R:11:3 ── Error ('test-plot_reg.R:9:3'): plot_reg works with default settings and correct X-axis labels ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─dplyr::mutate(...) at test-plot_reg.R:9:3 2. └─dplyr::mutate(...) ── Error ('test-plot_reg_combine.R:9:3'): plot_reg_combine works with various options ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-plot_reg_combine.R:9:3 ── Error ('test-select_models.R:8:3'): select_models works for valid approaches and directions ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-select_models.R:8:3 ── Error ('test-stratified_multi_reg.R:9:3'): stratified_multi_reg returns a gtsummary tbl_merge object ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-stratified_multi_reg.R:9:3 ── Error ('test-stratified_multi_reg.R:61:3'): stratified_multi_reg excludes NA values in stratifier ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-stratified_multi_reg.R:61:3 ── Error ('test-stratified_multi_reg.R:109:3'): stratified_multi_reg runs with robpoisson and produces estimates ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-stratified_multi_reg.R:109:3 ── Error ('test-stratified_multi_reg.R:153:3'): stratified_multi_reg works with negbin ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─dplyr::filter(...) at test-stratified_multi_reg.R:153:3 2. └─dplyr::mutate(...) ── Error ('test-stratified_uni_reg.R:4:3'): stratified_uni_reg returns a gtsummary tbl_merge object with logit ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─dplyr::mutate(...) at test-stratified_uni_reg.R:4:3 2. └─dplyr::mutate(...) ── Error ('test-stratified_uni_reg.R:40:3'): stratified_uni_reg excludes NA values in stratifier ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-stratified_uni_reg.R:40:3 ── Error ('test-stratified_uni_reg.R:67:3'): stratified_uni_reg errors for invalid inputs ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-stratified_uni_reg.R:67:3 ── Error ('test-stratified_uni_reg.R:100:3'): stratified_uni_reg works with robpoisson ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-stratified_uni_reg.R:100:3 ── Error ('test-stratified_uni_reg.R:126:3'): stratified_uni_reg works with negbin ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─dplyr::filter(...) at test-stratified_uni_reg.R:126:3 2. └─dplyr::mutate(...) ── Error ('test-stratified_uni_reg.R:163:3'): stratified_uni_reg errors when no valid strata exist ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-stratified_uni_reg.R:163:3 ── Error ('test-uni_reg.R:6:3'): uni_reg returns a gtsummary object and works with binary data ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─tidyr::drop_na(...) at test-uni_reg.R:6:3 2. └─dplyr::mutate(...) ── Error ('test-uni_reg.R:70:3'): uni_reg$ accessors return correct components ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─tidyr::drop_na(PimaIndiansDiabetes2) at test-uni_reg.R:70:3 [ FAIL 27 | WARN 29 | SKIP 1 | PASS 92 ] Error: ! Test failures. Execution halted Flavor: r-devel-linux-x86_64-debian-gcc

Version: 1.0.0
Check: examples
Result: ERROR Running examples in ‘gtregression-Ex.R’ failed The error most likely occurred in: > ### Name: check_collinearity > ### Title: Check Collinearity Using VIF for Fitted Models > ### Aliases: check_collinearity > > ### ** Examples > > if (requireNamespace("gtregression", quietly = TRUE) && + requireNamespace("mlbench", quietly = TRUE) && + getRversion() >= "4.1.0") { + data(PimaIndiansDiabetes2, package = "mlbench") + pima <- PimaIndiansDiabetes2 |> dplyr::filter(!is.na(diabetes)) + pima$diabetes <- ifelse(pima$diabetes == "pos", 1, 0) + fit <- multi_reg(pima, + outcome = "diabetes", + exposures = c("age", "mass", "glucose"), + approach = "logit" + ) + check_collinearity(fit) + } Warning in data(PimaIndiansDiabetes2, package = "mlbench") : data set ‘PimaIndiansDiabetes2’ not found Error: object 'PimaIndiansDiabetes2' not found Execution halted Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-x86_64, r-release-windows-x86_64, r-oldrel-windows-x86_64

Version: 1.0.0
Check: tests
Result: ERROR Running ‘testthat.R’ [43s/51s] 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(gtregression) > > test_check("gtregression") Attaching package: 'dplyr' The following objects are masked from 'package:stats': filter, lag The following objects are masked from 'package:base': intersect, setdiff, setequal, union Saving _problems/test-check_collinearity-9.R Saving _problems/test-check_collinearity-29.R Saving _problems/test-check_convergence-19.R Saving _problems/test-check_convergence-113.R # A tibble: 18 x 6 Variable Type `Missing (%)` Unique Levels Compatibility <chr> <chr> <chr> <int> <chr> <chr> 1 pregnant numeric 0% 17 - compatible 2 glucose numeric 0.7% 135 - compatible 3 pressure numeric 4.6% 46 - compatible 4 triceps numeric 29.6% 50 - compatible 5 insulin numeric 48.7% 185 - compatible 6 mass numeric 1.4% 247 - compatible 7 pedigree numeric 0% 517 - compatible 8 age numeric 0% 52 - compatible 9 diabetes numeric 0% 2 - maybe 10 bmi factor 1.4% 3 Normal, Overweight, ~ compatible 11 age_cat factor 0% 3 Young, Middle-aged, ~ compatible 12 npreg_cat factor 0% 2 Low parity, High par~ compatible 13 glucose_cat factor 0.7% 2 Normal, High compatible 14 bp_cat factor 4.6% 2 Normal, High compatible 15 triceps_cat factor 29.6% 2 Normal, High compatible 16 insulin_cat factor 48.7% 3 Low, Normal, High compatible 17 dpf_cat factor 0% 3 Low Genetic Risk, Mo~ compatible 18 diabetes_cat factor 0% 2 Diabetes negative, D~ compatible Interpretation notes: - compatible: ready to use in regression - maybe: require transformation to factor or check no of levels - incompatible: not usable as-is (e.g., all NA, <2 levels) Saving _problems/test-fit_multi_model-23.R Saving _problems/test-fit_uni_model-17.R Saving _problems/test-fit_uni_model-59.R Saving _problems/test-identify_confounder-27.R Saving _problems/test-interaction_models-32.R Saving _problems/test-interaction_models-64.R Saving _problems/test-interaction_models-96.R The number rows in the tables to be merged do not match, which may result in rows appearing out of order. i See `tbl_merge()` (`?gtsummary::tbl_merge()`) help file for details. Use `quiet=TRUE` to silence message. The number rows in the tables to be merged do not match, which may result in rows appearing out of order. i See `tbl_merge()` (`?gtsummary::tbl_merge()`) help file for details. Use `quiet=TRUE` to silence message. Saving _problems/test-multi_reg-50.R Saving _problems/test-plot_reg-43.R Saving _problems/test-plot_reg_combine-56.R Table saved at: /tmp/RtmpDv4sFB/working_dir/Rtmp0VUZOa/regression_results.docx `height` was translated to `width`. Plot saved at: /tmp/RtmpDv4sFB/working_dir/Rtmp0VUZOa/plot_png.png `height` was translated to `width`. Plot saved at: /tmp/RtmpDv4sFB/working_dir/Rtmp0VUZOa/plot_pdf.pdf `height` was translated to `width`. Plot saved at: /tmp/RtmpDv4sFB/working_dir/Rtmp0VUZOa/plot_jpg.jpg `height` was translated to `width`. Word document saved at: /tmp/RtmpDv4sFB/working_dir/Rtmp0VUZOa/final_report.docx If tables or plots extend beyond the page, consider switching to landscape layout in Word (Layout > Orientation > Landscape). Attaching package: 'MASS' The following object is masked from 'package:gtsummary': select The following object is masked from 'package:dplyr': select Saving _problems/test-select_models-25.R Saving _problems/test-stratified_multi_reg-32.R Saving _problems/test-stratified_multi_reg-75.R Saving _problems/test-stratified_multi_reg-120.R Saving _problems/test-stratified_multi_reg-167.R Saving _problems/test-stratified_uni_reg-21.R Saving _problems/test-stratified_uni_reg-46.R Saving _problems/test-stratified_uni_reg-71.R Saving _problems/test-stratified_uni_reg-106.R Saving _problems/test-stratified_uni_reg-142.R Saving _problems/test-stratified_uni_reg-167.R Saving _problems/test-uni_reg-10.R Saving _problems/test-uni_reg-70.R [ FAIL 27 | WARN 29 | SKIP 1 | PASS 92 ] ══ Skipped tests (1) ═══════════════════════════════════════════════════════════ • On CRAN (1): 'test-dissect.R:1:1' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-check_collinearity.R:7:3'): check_collinearity works correctly for multivariable models ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─dplyr::mutate(...) at test-check_collinearity.R:7:3 2. └─dplyr::filter(PimaIndiansDiabetes2, !is.na(diabetes)) ── Error ('test-check_collinearity.R:27:3'): check_collinearity throws error for univariate models ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─dplyr::mutate(...) at test-check_collinearity.R:27:3 2. └─dplyr::filter(PimaIndiansDiabetes2, !is.na(diabetes)) ── Error ('test-check_convergence.R:4:3'): check_convergence runs correctly for valid approaches ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-check_convergence.R:4:3 ── Error ('test-check_convergence.R:98:3'): check_convergence handles model fitting failure ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-check_convergence.R:98:3 ── Error ('test-fit_multi_model.R:7:3'): .fit_multi_model returns correct model class for each approach ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─dplyr::filter(...) at test-fit_multi_model.R:7:3 2. └─dplyr::mutate(...) ── Error ('test-fit_uni_model.R:7:3'): .fit_uni_model returns correct model class (PimaIndiansDiabetes2) ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─dplyr::filter(...) at test-fit_uni_model.R:7:3 2. └─dplyr::mutate(...) ── Error ('test-fit_uni_model.R:55:3'): .fit_uni_model handles model fitting failure gracefully ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-fit_uni_model.R:55:3 ── Error ('test-identify_confounder.R:6:3'): identify_confounder works across approaches using change-in-estimate method ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-identify_confounder.R:6:3 ── Error ('test-interaction_models.R:6:3'): interaction_models returns a list with expected names ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─dplyr::mutate(...) at test-interaction_models.R:6:3 2. └─dplyr::mutate(...) ── Error ('test-interaction_models.R:52:3'): interaction_models handles robpoisson approach ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─dplyr::mutate(...) at test-interaction_models.R:52:3 2. └─dplyr::mutate(...) ── Error ('test-interaction_models.R:84:3'): interaction_models errors with invalid approach ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─dplyr::mutate(...) at test-interaction_models.R:84:3 2. └─dplyr::mutate(...) ── Error ('test-multi_reg.R:11:3'): multi_reg computes estimates correctly across approaches ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-multi_reg.R:11:3 ── Error ('test-plot_reg.R:9:3'): plot_reg works with default settings and correct X-axis labels ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─dplyr::mutate(...) at test-plot_reg.R:9:3 2. └─dplyr::mutate(...) ── Error ('test-plot_reg_combine.R:9:3'): plot_reg_combine works with various options ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-plot_reg_combine.R:9:3 ── Error ('test-select_models.R:8:3'): select_models works for valid approaches and directions ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-select_models.R:8:3 ── Error ('test-stratified_multi_reg.R:9:3'): stratified_multi_reg returns a gtsummary tbl_merge object ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-stratified_multi_reg.R:9:3 ── Error ('test-stratified_multi_reg.R:61:3'): stratified_multi_reg excludes NA values in stratifier ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-stratified_multi_reg.R:61:3 ── Error ('test-stratified_multi_reg.R:109:3'): stratified_multi_reg runs with robpoisson and produces estimates ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-stratified_multi_reg.R:109:3 ── Error ('test-stratified_multi_reg.R:153:3'): stratified_multi_reg works with negbin ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─dplyr::filter(...) at test-stratified_multi_reg.R:153:3 2. └─dplyr::mutate(...) ── Error ('test-stratified_uni_reg.R:4:3'): stratified_uni_reg returns a gtsummary tbl_merge object with logit ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─dplyr::mutate(...) at test-stratified_uni_reg.R:4:3 2. └─dplyr::mutate(...) ── Error ('test-stratified_uni_reg.R:40:3'): stratified_uni_reg excludes NA values in stratifier ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-stratified_uni_reg.R:40:3 ── Error ('test-stratified_uni_reg.R:67:3'): stratified_uni_reg errors for invalid inputs ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-stratified_uni_reg.R:67:3 ── Error ('test-stratified_uni_reg.R:100:3'): stratified_uni_reg works with robpoisson ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-stratified_uni_reg.R:100:3 ── Error ('test-stratified_uni_reg.R:126:3'): stratified_uni_reg works with negbin ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─dplyr::filter(...) at test-stratified_uni_reg.R:126:3 2. └─dplyr::mutate(...) ── Error ('test-stratified_uni_reg.R:163:3'): stratified_uni_reg errors when no valid strata exist ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-stratified_uni_reg.R:163:3 ── Error ('test-uni_reg.R:6:3'): uni_reg returns a gtsummary object and works with binary data ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─tidyr::drop_na(...) at test-uni_reg.R:6:3 2. └─dplyr::mutate(...) ── Error ('test-uni_reg.R:70:3'): uni_reg$ accessors return correct components ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─tidyr::drop_na(PimaIndiansDiabetes2) at test-uni_reg.R:70:3 [ FAIL 27 | WARN 29 | SKIP 1 | PASS 92 ] Error: ! Test failures. Execution halted Flavor: r-devel-linux-x86_64-fedora-clang

Version: 1.0.0
Check: tests
Result: ERROR Running ‘testthat.R’ [44s/47s] 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(gtregression) > > test_check("gtregression") Attaching package: 'dplyr' The following objects are masked from 'package:stats': filter, lag The following objects are masked from 'package:base': intersect, setdiff, setequal, union Saving _problems/test-check_collinearity-9.R Saving _problems/test-check_collinearity-29.R Saving _problems/test-check_convergence-19.R Saving _problems/test-check_convergence-113.R # A tibble: 18 x 6 Variable Type `Missing (%)` Unique Levels Compatibility <chr> <chr> <chr> <int> <chr> <chr> 1 pregnant numeric 0% 17 - compatible 2 glucose numeric 0.7% 135 - compatible 3 pressure numeric 4.6% 46 - compatible 4 triceps numeric 29.6% 50 - compatible 5 insulin numeric 48.7% 185 - compatible 6 mass numeric 1.4% 247 - compatible 7 pedigree numeric 0% 517 - compatible 8 age numeric 0% 52 - compatible 9 diabetes numeric 0% 2 - maybe 10 bmi factor 1.4% 3 Normal, Overweight, ~ compatible 11 age_cat factor 0% 3 Young, Middle-aged, ~ compatible 12 npreg_cat factor 0% 2 Low parity, High par~ compatible 13 glucose_cat factor 0.7% 2 Normal, High compatible 14 bp_cat factor 4.6% 2 Normal, High compatible 15 triceps_cat factor 29.6% 2 Normal, High compatible 16 insulin_cat factor 48.7% 3 Low, Normal, High compatible 17 dpf_cat factor 0% 3 Low Genetic Risk, Mo~ compatible 18 diabetes_cat factor 0% 2 Diabetes negative, D~ compatible Interpretation notes: - compatible: ready to use in regression - maybe: require transformation to factor or check no of levels - incompatible: not usable as-is (e.g., all NA, <2 levels) Saving _problems/test-fit_multi_model-23.R Saving _problems/test-fit_uni_model-17.R Saving _problems/test-fit_uni_model-59.R Saving _problems/test-identify_confounder-27.R Saving _problems/test-interaction_models-32.R Saving _problems/test-interaction_models-64.R Saving _problems/test-interaction_models-96.R The number rows in the tables to be merged do not match, which may result in rows appearing out of order. i See `tbl_merge()` (`?gtsummary::tbl_merge()`) help file for details. Use `quiet=TRUE` to silence message. The number rows in the tables to be merged do not match, which may result in rows appearing out of order. i See `tbl_merge()` (`?gtsummary::tbl_merge()`) help file for details. Use `quiet=TRUE` to silence message. Saving _problems/test-multi_reg-50.R Saving _problems/test-plot_reg-43.R Saving _problems/test-plot_reg_combine-56.R Table saved at: /tmp/RtmpC8N8c7/working_dir/RtmpHPh55W/regression_results.docx `height` was translated to `width`. Plot saved at: /tmp/RtmpC8N8c7/working_dir/RtmpHPh55W/plot_png.png `height` was translated to `width`. Plot saved at: /tmp/RtmpC8N8c7/working_dir/RtmpHPh55W/plot_pdf.pdf `height` was translated to `width`. Plot saved at: /tmp/RtmpC8N8c7/working_dir/RtmpHPh55W/plot_jpg.jpg `height` was translated to `width`. Word document saved at: /tmp/RtmpC8N8c7/working_dir/RtmpHPh55W/final_report.docx If tables or plots extend beyond the page, consider switching to landscape layout in Word (Layout > Orientation > Landscape). Attaching package: 'MASS' The following object is masked from 'package:gtsummary': select The following object is masked from 'package:dplyr': select Saving _problems/test-select_models-25.R Saving _problems/test-stratified_multi_reg-32.R Saving _problems/test-stratified_multi_reg-75.R Saving _problems/test-stratified_multi_reg-120.R Saving _problems/test-stratified_multi_reg-167.R Saving _problems/test-stratified_uni_reg-21.R Saving _problems/test-stratified_uni_reg-46.R Saving _problems/test-stratified_uni_reg-71.R Saving _problems/test-stratified_uni_reg-106.R Saving _problems/test-stratified_uni_reg-142.R Saving _problems/test-stratified_uni_reg-167.R Saving _problems/test-uni_reg-10.R Saving _problems/test-uni_reg-70.R [ FAIL 27 | WARN 29 | SKIP 1 | PASS 92 ] ══ Skipped tests (1) ═══════════════════════════════════════════════════════════ • On CRAN (1): 'test-dissect.R:1:1' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-check_collinearity.R:7:3'): check_collinearity works correctly for multivariable models ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─dplyr::mutate(...) at test-check_collinearity.R:7:3 2. └─dplyr::filter(PimaIndiansDiabetes2, !is.na(diabetes)) ── Error ('test-check_collinearity.R:27:3'): check_collinearity throws error for univariate models ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─dplyr::mutate(...) at test-check_collinearity.R:27:3 2. └─dplyr::filter(PimaIndiansDiabetes2, !is.na(diabetes)) ── Error ('test-check_convergence.R:4:3'): check_convergence runs correctly for valid approaches ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-check_convergence.R:4:3 ── Error ('test-check_convergence.R:98:3'): check_convergence handles model fitting failure ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-check_convergence.R:98:3 ── Error ('test-fit_multi_model.R:7:3'): .fit_multi_model returns correct model class for each approach ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─dplyr::filter(...) at test-fit_multi_model.R:7:3 2. └─dplyr::mutate(...) ── Error ('test-fit_uni_model.R:7:3'): .fit_uni_model returns correct model class (PimaIndiansDiabetes2) ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─dplyr::filter(...) at test-fit_uni_model.R:7:3 2. └─dplyr::mutate(...) ── Error ('test-fit_uni_model.R:55:3'): .fit_uni_model handles model fitting failure gracefully ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-fit_uni_model.R:55:3 ── Error ('test-identify_confounder.R:6:3'): identify_confounder works across approaches using change-in-estimate method ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-identify_confounder.R:6:3 ── Error ('test-interaction_models.R:6:3'): interaction_models returns a list with expected names ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─dplyr::mutate(...) at test-interaction_models.R:6:3 2. └─dplyr::mutate(...) ── Error ('test-interaction_models.R:52:3'): interaction_models handles robpoisson approach ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─dplyr::mutate(...) at test-interaction_models.R:52:3 2. └─dplyr::mutate(...) ── Error ('test-interaction_models.R:84:3'): interaction_models errors with invalid approach ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─dplyr::mutate(...) at test-interaction_models.R:84:3 2. └─dplyr::mutate(...) ── Error ('test-multi_reg.R:11:3'): multi_reg computes estimates correctly across approaches ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-multi_reg.R:11:3 ── Error ('test-plot_reg.R:9:3'): plot_reg works with default settings and correct X-axis labels ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─dplyr::mutate(...) at test-plot_reg.R:9:3 2. └─dplyr::mutate(...) ── Error ('test-plot_reg_combine.R:9:3'): plot_reg_combine works with various options ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-plot_reg_combine.R:9:3 ── Error ('test-select_models.R:8:3'): select_models works for valid approaches and directions ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-select_models.R:8:3 ── Error ('test-stratified_multi_reg.R:9:3'): stratified_multi_reg returns a gtsummary tbl_merge object ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-stratified_multi_reg.R:9:3 ── Error ('test-stratified_multi_reg.R:61:3'): stratified_multi_reg excludes NA values in stratifier ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-stratified_multi_reg.R:61:3 ── Error ('test-stratified_multi_reg.R:109:3'): stratified_multi_reg runs with robpoisson and produces estimates ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-stratified_multi_reg.R:109:3 ── Error ('test-stratified_multi_reg.R:153:3'): stratified_multi_reg works with negbin ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─dplyr::filter(...) at test-stratified_multi_reg.R:153:3 2. └─dplyr::mutate(...) ── Error ('test-stratified_uni_reg.R:4:3'): stratified_uni_reg returns a gtsummary tbl_merge object with logit ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─dplyr::mutate(...) at test-stratified_uni_reg.R:4:3 2. └─dplyr::mutate(...) ── Error ('test-stratified_uni_reg.R:40:3'): stratified_uni_reg excludes NA values in stratifier ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-stratified_uni_reg.R:40:3 ── Error ('test-stratified_uni_reg.R:67:3'): stratified_uni_reg errors for invalid inputs ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-stratified_uni_reg.R:67:3 ── Error ('test-stratified_uni_reg.R:100:3'): stratified_uni_reg works with robpoisson ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-stratified_uni_reg.R:100:3 ── Error ('test-stratified_uni_reg.R:126:3'): stratified_uni_reg works with negbin ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─dplyr::filter(...) at test-stratified_uni_reg.R:126:3 2. └─dplyr::mutate(...) ── Error ('test-stratified_uni_reg.R:163:3'): stratified_uni_reg errors when no valid strata exist ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-stratified_uni_reg.R:163:3 ── Error ('test-uni_reg.R:6:3'): uni_reg returns a gtsummary object and works with binary data ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─tidyr::drop_na(...) at test-uni_reg.R:6:3 2. └─dplyr::mutate(...) ── Error ('test-uni_reg.R:70:3'): uni_reg$ accessors return correct components ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─tidyr::drop_na(PimaIndiansDiabetes2) at test-uni_reg.R:70:3 [ FAIL 27 | WARN 29 | SKIP 1 | PASS 92 ] Error: ! Test failures. Execution halted Flavor: r-devel-linux-x86_64-fedora-gcc

Version: 1.0.0
Check: tests
Result: ERROR Running 'testthat.R' [49s] 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(gtregression) > > test_check("gtregression") Attaching package: 'dplyr' The following objects are masked from 'package:stats': filter, lag The following objects are masked from 'package:base': intersect, setdiff, setequal, union Saving _problems/test-check_collinearity-9.R Saving _problems/test-check_collinearity-29.R Saving _problems/test-check_convergence-19.R Saving _problems/test-check_convergence-113.R # A tibble: 18 x 6 Variable Type `Missing (%)` Unique Levels Compatibility <chr> <chr> <chr> <int> <chr> <chr> 1 pregnant numeric 0% 17 - compatible 2 glucose numeric 0.7% 135 - compatible 3 pressure numeric 4.6% 46 - compatible 4 triceps numeric 29.6% 50 - compatible 5 insulin numeric 48.7% 185 - compatible 6 mass numeric 1.4% 247 - compatible 7 pedigree numeric 0% 517 - compatible 8 age numeric 0% 52 - compatible 9 diabetes numeric 0% 2 - maybe 10 bmi factor 1.4% 3 Normal, Overweight, ~ compatible 11 age_cat factor 0% 3 Young, Middle-aged, ~ compatible 12 npreg_cat factor 0% 2 Low parity, High par~ compatible 13 glucose_cat factor 0.7% 2 Normal, High compatible 14 bp_cat factor 4.6% 2 Normal, High compatible 15 triceps_cat factor 29.6% 2 Normal, High compatible 16 insulin_cat factor 48.7% 3 Low, Normal, High compatible 17 dpf_cat factor 0% 3 Low Genetic Risk, Mo~ compatible 18 diabetes_cat factor 0% 2 Diabetes negative, D~ compatible Interpretation notes: - compatible: ready to use in regression - maybe: require transformation to factor or check no of levels - incompatible: not usable as-is (e.g., all NA, <2 levels) Saving _problems/test-fit_multi_model-23.R Saving _problems/test-fit_uni_model-17.R Saving _problems/test-fit_uni_model-59.R Saving _problems/test-identify_confounder-27.R Saving _problems/test-interaction_models-32.R Saving _problems/test-interaction_models-64.R Saving _problems/test-interaction_models-96.R The number rows in the tables to be merged do not match, which may result in rows appearing out of order. i See `tbl_merge()` (`?gtsummary::tbl_merge()`) help file for details. Use `quiet=TRUE` to silence message. The number rows in the tables to be merged do not match, which may result in rows appearing out of order. i See `tbl_merge()` (`?gtsummary::tbl_merge()`) help file for details. Use `quiet=TRUE` to silence message. Saving _problems/test-multi_reg-50.R Saving _problems/test-plot_reg-43.R Saving _problems/test-plot_reg_combine-56.R Table saved at: D:\temp\2026_08_04_01_50_00_19257\Rtmp6Z0NXQ\regression_results.docx `height` was translated to `width`. Plot saved at: D:\temp\2026_08_04_01_50_00_19257\Rtmp6Z0NXQ\plot_png.png `height` was translated to `width`. Plot saved at: D:\temp\2026_08_04_01_50_00_19257\Rtmp6Z0NXQ\plot_pdf.pdf `height` was translated to `width`. Plot saved at: D:\temp\2026_08_04_01_50_00_19257\Rtmp6Z0NXQ\plot_jpg.jpg `height` was translated to `width`. Word document saved at: D:\temp\2026_08_04_01_50_00_19257\Rtmp6Z0NXQ\final_report.docx If tables or plots extend beyond the page, consider switching to landscape layout in Word (Layout > Orientation > Landscape). Attaching package: 'MASS' The following object is masked from 'package:gtsummary': select The following object is masked from 'package:dplyr': select Saving _problems/test-select_models-25.R Saving _problems/test-stratified_multi_reg-32.R Saving _problems/test-stratified_multi_reg-75.R Saving _problems/test-stratified_multi_reg-120.R Saving _problems/test-stratified_multi_reg-167.R Saving _problems/test-stratified_uni_reg-21.R Saving _problems/test-stratified_uni_reg-46.R Saving _problems/test-stratified_uni_reg-71.R Saving _problems/test-stratified_uni_reg-106.R Saving _problems/test-stratified_uni_reg-142.R Saving _problems/test-stratified_uni_reg-167.R Saving _problems/test-uni_reg-10.R Saving _problems/test-uni_reg-70.R [ FAIL 27 | WARN 29 | SKIP 1 | PASS 92 ] ══ Skipped tests (1) ═══════════════════════════════════════════════════════════ • On CRAN (1): 'test-dissect.R:1:1' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-check_collinearity.R:7:3'): check_collinearity works correctly for multivariable models ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─dplyr::mutate(...) at test-check_collinearity.R:7:3 2. └─dplyr::filter(PimaIndiansDiabetes2, !is.na(diabetes)) ── Error ('test-check_collinearity.R:27:3'): check_collinearity throws error for univariate models ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─dplyr::mutate(...) at test-check_collinearity.R:27:3 2. └─dplyr::filter(PimaIndiansDiabetes2, !is.na(diabetes)) ── Error ('test-check_convergence.R:4:3'): check_convergence runs correctly for valid approaches ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-check_convergence.R:4:3 ── Error ('test-check_convergence.R:98:3'): check_convergence handles model fitting failure ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-check_convergence.R:98:3 ── Error ('test-fit_multi_model.R:7:3'): .fit_multi_model returns correct model class for each approach ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─dplyr::filter(...) at test-fit_multi_model.R:7:3 2. └─dplyr::mutate(...) ── Error ('test-fit_uni_model.R:7:3'): .fit_uni_model returns correct model class (PimaIndiansDiabetes2) ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─dplyr::filter(...) at test-fit_uni_model.R:7:3 2. └─dplyr::mutate(...) ── Error ('test-fit_uni_model.R:55:3'): .fit_uni_model handles model fitting failure gracefully ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-fit_uni_model.R:55:3 ── Error ('test-identify_confounder.R:6:3'): identify_confounder works across approaches using change-in-estimate method ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-identify_confounder.R:6:3 ── Error ('test-interaction_models.R:6:3'): interaction_models returns a list with expected names ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─dplyr::mutate(...) at test-interaction_models.R:6:3 2. └─dplyr::mutate(...) ── Error ('test-interaction_models.R:52:3'): interaction_models handles robpoisson approach ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─dplyr::mutate(...) at test-interaction_models.R:52:3 2. └─dplyr::mutate(...) ── Error ('test-interaction_models.R:84:3'): interaction_models errors with invalid approach ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─dplyr::mutate(...) at test-interaction_models.R:84:3 2. └─dplyr::mutate(...) ── Error ('test-multi_reg.R:11:3'): multi_reg computes estimates correctly across approaches ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-multi_reg.R:11:3 ── Error ('test-plot_reg.R:9:3'): plot_reg works with default settings and correct X-axis labels ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─dplyr::mutate(...) at test-plot_reg.R:9:3 2. └─dplyr::mutate(...) ── Error ('test-plot_reg_combine.R:9:3'): plot_reg_combine works with various options ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-plot_reg_combine.R:9:3 ── Error ('test-select_models.R:8:3'): select_models works for valid approaches and directions ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-select_models.R:8:3 ── Error ('test-stratified_multi_reg.R:9:3'): stratified_multi_reg returns a gtsummary tbl_merge object ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-stratified_multi_reg.R:9:3 ── Error ('test-stratified_multi_reg.R:61:3'): stratified_multi_reg excludes NA values in stratifier ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-stratified_multi_reg.R:61:3 ── Error ('test-stratified_multi_reg.R:109:3'): stratified_multi_reg runs with robpoisson and produces estimates ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-stratified_multi_reg.R:109:3 ── Error ('test-stratified_multi_reg.R:153:3'): stratified_multi_reg works with negbin ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─dplyr::filter(...) at test-stratified_multi_reg.R:153:3 2. └─dplyr::mutate(...) ── Error ('test-stratified_uni_reg.R:4:3'): stratified_uni_reg returns a gtsummary tbl_merge object with logit ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─dplyr::mutate(...) at test-stratified_uni_reg.R:4:3 2. └─dplyr::mutate(...) ── Error ('test-stratified_uni_reg.R:40:3'): stratified_uni_reg excludes NA values in stratifier ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-stratified_uni_reg.R:40:3 ── Error ('test-stratified_uni_reg.R:67:3'): stratified_uni_reg errors for invalid inputs ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-stratified_uni_reg.R:67:3 ── Error ('test-stratified_uni_reg.R:100:3'): stratified_uni_reg works with robpoisson ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-stratified_uni_reg.R:100:3 ── Error ('test-stratified_uni_reg.R:126:3'): stratified_uni_reg works with negbin ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─dplyr::filter(...) at test-stratified_uni_reg.R:126:3 2. └─dplyr::mutate(...) ── Error ('test-stratified_uni_reg.R:163:3'): stratified_uni_reg errors when no valid strata exist ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-stratified_uni_reg.R:163:3 ── Error ('test-uni_reg.R:6:3'): uni_reg returns a gtsummary object and works with binary data ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─tidyr::drop_na(...) at test-uni_reg.R:6:3 2. └─dplyr::mutate(...) ── Error ('test-uni_reg.R:70:3'): uni_reg$ accessors return correct components ── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─tidyr::drop_na(PimaIndiansDiabetes2) at test-uni_reg.R:70:3 [ FAIL 27 | WARN 29 | SKIP 1 | PASS 92 ] Error: ! Test failures. Execution halted Flavor: r-devel-windows-x86_64

Version: 1.0.0
Check: tests
Result: ERROR Running ‘testthat.R’ [61s/78s] 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(gtregression) > > test_check("gtregression") Attaching package: 'dplyr' The following objects are masked from 'package:stats': filter, lag The following objects are masked from 'package:base': intersect, setdiff, setequal, union Saving _problems/test-check_collinearity-9.R Saving _problems/test-check_collinearity-29.R Saving _problems/test-check_convergence-19.R Saving _problems/test-check_convergence-113.R # A tibble: 18 x 6 Variable Type `Missing (%)` Unique Levels Compatibility <chr> <chr> <chr> <int> <chr> <chr> 1 pregnant numeric 0% 17 - compatible 2 glucose numeric 0.7% 135 - compatible 3 pressure numeric 4.6% 46 - compatible 4 triceps numeric 29.6% 50 - compatible 5 insulin numeric 48.7% 185 - compatible 6 mass numeric 1.4% 247 - compatible 7 pedigree numeric 0% 517 - compatible 8 age numeric 0% 52 - compatible 9 diabetes numeric 0% 2 - maybe 10 bmi factor 1.4% 3 Normal, Overweight, ~ compatible 11 age_cat factor 0% 3 Young, Middle-aged, ~ compatible 12 npreg_cat factor 0% 2 Low parity, High par~ compatible 13 glucose_cat factor 0.7% 2 Normal, High compatible 14 bp_cat factor 4.6% 2 Normal, High compatible 15 triceps_cat factor 29.6% 2 Normal, High compatible 16 insulin_cat factor 48.7% 3 Low, Normal, High compatible 17 dpf_cat factor 0% 3 Low Genetic Risk, Mo~ compatible 18 diabetes_cat factor 0% 2 Diabetes negative, D~ compatible Interpretation notes: - compatible: ready to use in regression - maybe: require transformation to factor or check no of levels - incompatible: not usable as-is (e.g., all NA, <2 levels) Saving _problems/test-fit_multi_model-23.R Saving _problems/test-fit_uni_model-17.R Saving _problems/test-fit_uni_model-59.R Saving _problems/test-identify_confounder-27.R Saving _problems/test-interaction_models-32.R Saving _problems/test-interaction_models-64.R Saving _problems/test-interaction_models-96.R The number rows in the tables to be merged do not match, which may result in rows appearing out of order. i See `tbl_merge()` (`?gtsummary::tbl_merge()`) help file for details. Use `quiet=TRUE` to silence message. The number rows in the tables to be merged do not match, which may result in rows appearing out of order. i See `tbl_merge()` (`?gtsummary::tbl_merge()`) help file for details. Use `quiet=TRUE` to silence message. Saving _problems/test-multi_reg-50.R Saving _problems/test-plot_reg-43.R Saving _problems/test-plot_reg_combine-56.R Table saved at: /home/hornik/tmp/scratch/Rtmp6z5uzF/regression_results.docx `height` was translated to `width`. Plot saved at: /home/hornik/tmp/scratch/Rtmp6z5uzF/plot_png.png `height` was translated to `width`. Plot saved at: /home/hornik/tmp/scratch/Rtmp6z5uzF/plot_pdf.pdf `height` was translated to `width`. Plot saved at: /home/hornik/tmp/scratch/Rtmp6z5uzF/plot_jpg.jpg `height` was translated to `width`. Word document saved at: /home/hornik/tmp/scratch/Rtmp6z5uzF/final_report.docx If tables or plots extend beyond the page, consider switching to landscape layout in Word (Layout > Orientation > Landscape). Attaching package: 'MASS' The following object is masked from 'package:gtsummary': select The following object is masked from 'package:dplyr': select Saving _problems/test-select_models-25.R Saving _problems/test-stratified_multi_reg-32.R Saving _problems/test-stratified_multi_reg-75.R Saving _problems/test-stratified_multi_reg-120.R Saving _problems/test-stratified_multi_reg-167.R Saving _problems/test-stratified_uni_reg-21.R Saving _problems/test-stratified_uni_reg-46.R Saving _problems/test-stratified_uni_reg-71.R Saving _problems/test-stratified_uni_reg-106.R Saving _problems/test-stratified_uni_reg-142.R Saving _problems/test-stratified_uni_reg-167.R Saving _problems/test-uni_reg-10.R Saving _problems/test-uni_reg-70.R [ FAIL 27 | WARN 29 | SKIP 1 | PASS 92 ] ══ Skipped tests (1) ═══════════════════════════════════════════════════════════ • On CRAN (1): 'test-dissect.R:1:1' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-check_collinearity.R:7:3'): check_collinearity works correctly for multivariable models ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─dplyr::mutate(...) at test-check_collinearity.R:7:3 2. └─dplyr::filter(PimaIndiansDiabetes2, !is.na(diabetes)) ── Error ('test-check_collinearity.R:27:3'): check_collinearity throws error for univariate models ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─dplyr::mutate(...) at test-check_collinearity.R:27:3 2. └─dplyr::filter(PimaIndiansDiabetes2, !is.na(diabetes)) ── Error ('test-check_convergence.R:4:3'): check_convergence runs correctly for valid approaches ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-check_convergence.R:4:3 ── Error ('test-check_convergence.R:98:3'): check_convergence handles model fitting failure ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-check_convergence.R:98:3 ── Error ('test-fit_multi_model.R:7:3'): .fit_multi_model returns correct model class for each approach ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─dplyr::filter(...) at test-fit_multi_model.R:7:3 2. └─dplyr::mutate(...) ── Error ('test-fit_uni_model.R:7:3'): .fit_uni_model returns correct model class (PimaIndiansDiabetes2) ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─dplyr::filter(...) at test-fit_uni_model.R:7:3 2. └─dplyr::mutate(...) ── Error ('test-fit_uni_model.R:55:3'): .fit_uni_model handles model fitting failure gracefully ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-fit_uni_model.R:55:3 ── Error ('test-identify_confounder.R:6:3'): identify_confounder works across approaches using change-in-estimate method ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-identify_confounder.R:6:3 ── Error ('test-interaction_models.R:6:3'): interaction_models returns a list with expected names ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─dplyr::mutate(...) at test-interaction_models.R:6:3 2. └─dplyr::mutate(...) ── Error ('test-interaction_models.R:52:3'): interaction_models handles robpoisson approach ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─dplyr::mutate(...) at test-interaction_models.R:52:3 2. └─dplyr::mutate(...) ── Error ('test-interaction_models.R:84:3'): interaction_models errors with invalid approach ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─dplyr::mutate(...) at test-interaction_models.R:84:3 2. └─dplyr::mutate(...) ── Error ('test-multi_reg.R:11:3'): multi_reg computes estimates correctly across approaches ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-multi_reg.R:11:3 ── Error ('test-plot_reg.R:9:3'): plot_reg works with default settings and correct X-axis labels ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─dplyr::mutate(...) at test-plot_reg.R:9:3 2. └─dplyr::mutate(...) ── Error ('test-plot_reg_combine.R:9:3'): plot_reg_combine works with various options ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-plot_reg_combine.R:9:3 ── Error ('test-select_models.R:8:3'): select_models works for valid approaches and directions ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-select_models.R:8:3 ── Error ('test-stratified_multi_reg.R:9:3'): stratified_multi_reg returns a gtsummary tbl_merge object ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-stratified_multi_reg.R:9:3 ── Error ('test-stratified_multi_reg.R:61:3'): stratified_multi_reg excludes NA values in stratifier ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-stratified_multi_reg.R:61:3 ── Error ('test-stratified_multi_reg.R:109:3'): stratified_multi_reg runs with robpoisson and produces estimates ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-stratified_multi_reg.R:109:3 ── Error ('test-stratified_multi_reg.R:153:3'): stratified_multi_reg works with negbin ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─dplyr::filter(...) at test-stratified_multi_reg.R:153:3 2. └─dplyr::mutate(...) ── Error ('test-stratified_uni_reg.R:4:3'): stratified_uni_reg returns a gtsummary tbl_merge object with logit ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─dplyr::mutate(...) at test-stratified_uni_reg.R:4:3 2. └─dplyr::mutate(...) ── Error ('test-stratified_uni_reg.R:40:3'): stratified_uni_reg excludes NA values in stratifier ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-stratified_uni_reg.R:40:3 ── Error ('test-stratified_uni_reg.R:67:3'): stratified_uni_reg errors for invalid inputs ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-stratified_uni_reg.R:67:3 ── Error ('test-stratified_uni_reg.R:100:3'): stratified_uni_reg works with robpoisson ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-stratified_uni_reg.R:100:3 ── Error ('test-stratified_uni_reg.R:126:3'): stratified_uni_reg works with negbin ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─dplyr::filter(...) at test-stratified_uni_reg.R:126:3 2. └─dplyr::mutate(...) ── Error ('test-stratified_uni_reg.R:163:3'): stratified_uni_reg errors when no valid strata exist ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-stratified_uni_reg.R:163:3 ── Error ('test-uni_reg.R:6:3'): uni_reg returns a gtsummary object and works with binary data ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─tidyr::drop_na(...) at test-uni_reg.R:6:3 2. └─dplyr::mutate(...) ── Error ('test-uni_reg.R:70:3'): uni_reg$ accessors return correct components ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─tidyr::drop_na(PimaIndiansDiabetes2) at test-uni_reg.R:70:3 [ FAIL 27 | WARN 29 | SKIP 1 | PASS 92 ] Error: ! Test failures. Execution halted Flavor: r-patched-linux-x86_64

Version: 1.0.0
Check: tests
Result: ERROR Running ‘testthat.R’ [61s/82s] 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(gtregression) > > test_check("gtregression") Attaching package: 'dplyr' The following objects are masked from 'package:stats': filter, lag The following objects are masked from 'package:base': intersect, setdiff, setequal, union Saving _problems/test-check_collinearity-9.R Saving _problems/test-check_collinearity-29.R Saving _problems/test-check_convergence-19.R Saving _problems/test-check_convergence-113.R # A tibble: 18 x 6 Variable Type `Missing (%)` Unique Levels Compatibility <chr> <chr> <chr> <int> <chr> <chr> 1 pregnant numeric 0% 17 - compatible 2 glucose numeric 0.7% 135 - compatible 3 pressure numeric 4.6% 46 - compatible 4 triceps numeric 29.6% 50 - compatible 5 insulin numeric 48.7% 185 - compatible 6 mass numeric 1.4% 247 - compatible 7 pedigree numeric 0% 517 - compatible 8 age numeric 0% 52 - compatible 9 diabetes numeric 0% 2 - maybe 10 bmi factor 1.4% 3 Normal, Overweight, ~ compatible 11 age_cat factor 0% 3 Young, Middle-aged, ~ compatible 12 npreg_cat factor 0% 2 Low parity, High par~ compatible 13 glucose_cat factor 0.7% 2 Normal, High compatible 14 bp_cat factor 4.6% 2 Normal, High compatible 15 triceps_cat factor 29.6% 2 Normal, High compatible 16 insulin_cat factor 48.7% 3 Low, Normal, High compatible 17 dpf_cat factor 0% 3 Low Genetic Risk, Mo~ compatible 18 diabetes_cat factor 0% 2 Diabetes negative, D~ compatible Interpretation notes: - compatible: ready to use in regression - maybe: require transformation to factor or check no of levels - incompatible: not usable as-is (e.g., all NA, <2 levels) Saving _problems/test-fit_multi_model-23.R Saving _problems/test-fit_uni_model-17.R Saving _problems/test-fit_uni_model-59.R Saving _problems/test-identify_confounder-27.R Saving _problems/test-interaction_models-32.R Saving _problems/test-interaction_models-64.R Saving _problems/test-interaction_models-96.R The number rows in the tables to be merged do not match, which may result in rows appearing out of order. i See `tbl_merge()` (`?gtsummary::tbl_merge()`) help file for details. Use `quiet=TRUE` to silence message. The number rows in the tables to be merged do not match, which may result in rows appearing out of order. i See `tbl_merge()` (`?gtsummary::tbl_merge()`) help file for details. Use `quiet=TRUE` to silence message. Saving _problems/test-multi_reg-50.R Saving _problems/test-plot_reg-43.R Saving _problems/test-plot_reg_combine-56.R Table saved at: /home/hornik/tmp/scratch/RtmpGHQXhU/regression_results.docx `height` was translated to `width`. Plot saved at: /home/hornik/tmp/scratch/RtmpGHQXhU/plot_png.png `height` was translated to `width`. Plot saved at: /home/hornik/tmp/scratch/RtmpGHQXhU/plot_pdf.pdf `height` was translated to `width`. Plot saved at: /home/hornik/tmp/scratch/RtmpGHQXhU/plot_jpg.jpg `height` was translated to `width`. Word document saved at: /home/hornik/tmp/scratch/RtmpGHQXhU/final_report.docx If tables or plots extend beyond the page, consider switching to landscape layout in Word (Layout > Orientation > Landscape). Attaching package: 'MASS' The following object is masked from 'package:gtsummary': select The following object is masked from 'package:dplyr': select Saving _problems/test-select_models-25.R Saving _problems/test-stratified_multi_reg-32.R Saving _problems/test-stratified_multi_reg-75.R Saving _problems/test-stratified_multi_reg-120.R Saving _problems/test-stratified_multi_reg-167.R Saving _problems/test-stratified_uni_reg-21.R Saving _problems/test-stratified_uni_reg-46.R Saving _problems/test-stratified_uni_reg-71.R Saving _problems/test-stratified_uni_reg-106.R Saving _problems/test-stratified_uni_reg-142.R Saving _problems/test-stratified_uni_reg-167.R Saving _problems/test-uni_reg-10.R Saving _problems/test-uni_reg-70.R [ FAIL 27 | WARN 29 | SKIP 1 | PASS 92 ] ══ Skipped tests (1) ═══════════════════════════════════════════════════════════ • On CRAN (1): 'test-dissect.R:1:1' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-check_collinearity.R:7:3'): check_collinearity works correctly for multivariable models ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─dplyr::mutate(...) at test-check_collinearity.R:7:3 2. └─dplyr::filter(PimaIndiansDiabetes2, !is.na(diabetes)) ── Error ('test-check_collinearity.R:27:3'): check_collinearity throws error for univariate models ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─dplyr::mutate(...) at test-check_collinearity.R:27:3 2. └─dplyr::filter(PimaIndiansDiabetes2, !is.na(diabetes)) ── Error ('test-check_convergence.R:4:3'): check_convergence runs correctly for valid approaches ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-check_convergence.R:4:3 ── Error ('test-check_convergence.R:98:3'): check_convergence handles model fitting failure ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-check_convergence.R:98:3 ── Error ('test-fit_multi_model.R:7:3'): .fit_multi_model returns correct model class for each approach ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─dplyr::filter(...) at test-fit_multi_model.R:7:3 2. └─dplyr::mutate(...) ── Error ('test-fit_uni_model.R:7:3'): .fit_uni_model returns correct model class (PimaIndiansDiabetes2) ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─dplyr::filter(...) at test-fit_uni_model.R:7:3 2. └─dplyr::mutate(...) ── Error ('test-fit_uni_model.R:55:3'): .fit_uni_model handles model fitting failure gracefully ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-fit_uni_model.R:55:3 ── Error ('test-identify_confounder.R:6:3'): identify_confounder works across approaches using change-in-estimate method ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-identify_confounder.R:6:3 ── Error ('test-interaction_models.R:6:3'): interaction_models returns a list with expected names ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─dplyr::mutate(...) at test-interaction_models.R:6:3 2. └─dplyr::mutate(...) ── Error ('test-interaction_models.R:52:3'): interaction_models handles robpoisson approach ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─dplyr::mutate(...) at test-interaction_models.R:52:3 2. └─dplyr::mutate(...) ── Error ('test-interaction_models.R:84:3'): interaction_models errors with invalid approach ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─dplyr::mutate(...) at test-interaction_models.R:84:3 2. └─dplyr::mutate(...) ── Error ('test-multi_reg.R:11:3'): multi_reg computes estimates correctly across approaches ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-multi_reg.R:11:3 ── Error ('test-plot_reg.R:9:3'): plot_reg works with default settings and correct X-axis labels ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─dplyr::mutate(...) at test-plot_reg.R:9:3 2. └─dplyr::mutate(...) ── Error ('test-plot_reg_combine.R:9:3'): plot_reg_combine works with various options ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-plot_reg_combine.R:9:3 ── Error ('test-select_models.R:8:3'): select_models works for valid approaches and directions ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-select_models.R:8:3 ── Error ('test-stratified_multi_reg.R:9:3'): stratified_multi_reg returns a gtsummary tbl_merge object ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-stratified_multi_reg.R:9:3 ── Error ('test-stratified_multi_reg.R:61:3'): stratified_multi_reg excludes NA values in stratifier ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-stratified_multi_reg.R:61:3 ── Error ('test-stratified_multi_reg.R:109:3'): stratified_multi_reg runs with robpoisson and produces estimates ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-stratified_multi_reg.R:109:3 ── Error ('test-stratified_multi_reg.R:153:3'): stratified_multi_reg works with negbin ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─dplyr::filter(...) at test-stratified_multi_reg.R:153:3 2. └─dplyr::mutate(...) ── Error ('test-stratified_uni_reg.R:4:3'): stratified_uni_reg returns a gtsummary tbl_merge object with logit ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─dplyr::mutate(...) at test-stratified_uni_reg.R:4:3 2. └─dplyr::mutate(...) ── Error ('test-stratified_uni_reg.R:40:3'): stratified_uni_reg excludes NA values in stratifier ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-stratified_uni_reg.R:40:3 ── Error ('test-stratified_uni_reg.R:67:3'): stratified_uni_reg errors for invalid inputs ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-stratified_uni_reg.R:67:3 ── Error ('test-stratified_uni_reg.R:100:3'): stratified_uni_reg works with robpoisson ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-stratified_uni_reg.R:100:3 ── Error ('test-stratified_uni_reg.R:126:3'): stratified_uni_reg works with negbin ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─dplyr::filter(...) at test-stratified_uni_reg.R:126:3 2. └─dplyr::mutate(...) ── Error ('test-stratified_uni_reg.R:163:3'): stratified_uni_reg errors when no valid strata exist ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-stratified_uni_reg.R:163:3 ── Error ('test-uni_reg.R:6:3'): uni_reg returns a gtsummary object and works with binary data ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─tidyr::drop_na(...) at test-uni_reg.R:6:3 2. └─dplyr::mutate(...) ── Error ('test-uni_reg.R:70:3'): uni_reg$ accessors return correct components ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─tidyr::drop_na(PimaIndiansDiabetes2) at test-uni_reg.R:70:3 [ FAIL 27 | WARN 29 | SKIP 1 | PASS 92 ] Error: ! Test failures. Execution halted Flavor: r-release-linux-x86_64

Version: 1.0.0
Check: tests
Result: ERROR Running 'testthat.R' [50s] 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(gtregression) > > test_check("gtregression") Attaching package: 'dplyr' The following objects are masked from 'package:stats': filter, lag The following objects are masked from 'package:base': intersect, setdiff, setequal, union Saving _problems/test-check_collinearity-9.R Saving _problems/test-check_collinearity-29.R Saving _problems/test-check_convergence-19.R Saving _problems/test-check_convergence-113.R # A tibble: 18 x 6 Variable Type `Missing (%)` Unique Levels Compatibility <chr> <chr> <chr> <int> <chr> <chr> 1 pregnant numeric 0% 17 - compatible 2 glucose numeric 0.7% 135 - compatible 3 pressure numeric 4.6% 46 - compatible 4 triceps numeric 29.6% 50 - compatible 5 insulin numeric 48.7% 185 - compatible 6 mass numeric 1.4% 247 - compatible 7 pedigree numeric 0% 517 - compatible 8 age numeric 0% 52 - compatible 9 diabetes numeric 0% 2 - maybe 10 bmi factor 1.4% 3 Normal, Overweight, ~ compatible 11 age_cat factor 0% 3 Young, Middle-aged, ~ compatible 12 npreg_cat factor 0% 2 Low parity, High par~ compatible 13 glucose_cat factor 0.7% 2 Normal, High compatible 14 bp_cat factor 4.6% 2 Normal, High compatible 15 triceps_cat factor 29.6% 2 Normal, High compatible 16 insulin_cat factor 48.7% 3 Low, Normal, High compatible 17 dpf_cat factor 0% 3 Low Genetic Risk, Mo~ compatible 18 diabetes_cat factor 0% 2 Diabetes negative, D~ compatible Interpretation notes: - compatible: ready to use in regression - maybe: require transformation to factor or check no of levels - incompatible: not usable as-is (e.g., all NA, <2 levels) Saving _problems/test-fit_multi_model-23.R Saving _problems/test-fit_uni_model-17.R Saving _problems/test-fit_uni_model-59.R Saving _problems/test-identify_confounder-27.R Saving _problems/test-interaction_models-32.R Saving _problems/test-interaction_models-64.R Saving _problems/test-interaction_models-96.R The number rows in the tables to be merged do not match, which may result in rows appearing out of order. i See `tbl_merge()` (`?gtsummary::tbl_merge()`) help file for details. Use `quiet=TRUE` to silence message. The number rows in the tables to be merged do not match, which may result in rows appearing out of order. i See `tbl_merge()` (`?gtsummary::tbl_merge()`) help file for details. Use `quiet=TRUE` to silence message. Saving _problems/test-multi_reg-50.R Saving _problems/test-plot_reg-43.R Saving _problems/test-plot_reg_combine-56.R Table saved at: D:\temp\2026_08_07_01_50_00_13727\RtmpCC1KJa\regression_results.docx `height` was translated to `width`. Plot saved at: D:\temp\2026_08_07_01_50_00_13727\RtmpCC1KJa\plot_png.png `height` was translated to `width`. Plot saved at: D:\temp\2026_08_07_01_50_00_13727\RtmpCC1KJa\plot_pdf.pdf `height` was translated to `width`. Plot saved at: D:\temp\2026_08_07_01_50_00_13727\RtmpCC1KJa\plot_jpg.jpg `height` was translated to `width`. Word document saved at: D:\temp\2026_08_07_01_50_00_13727\RtmpCC1KJa\final_report.docx If tables or plots extend beyond the page, consider switching to landscape layout in Word (Layout > Orientation > Landscape). Attaching package: 'MASS' The following object is masked from 'package:gtsummary': select The following object is masked from 'package:dplyr': select Saving _problems/test-select_models-25.R Saving _problems/test-stratified_multi_reg-32.R Saving _problems/test-stratified_multi_reg-75.R Saving _problems/test-stratified_multi_reg-120.R Saving _problems/test-stratified_multi_reg-167.R Saving _problems/test-stratified_uni_reg-21.R Saving _problems/test-stratified_uni_reg-46.R Saving _problems/test-stratified_uni_reg-71.R Saving _problems/test-stratified_uni_reg-106.R Saving _problems/test-stratified_uni_reg-142.R Saving _problems/test-stratified_uni_reg-167.R Saving _problems/test-uni_reg-10.R Saving _problems/test-uni_reg-70.R [ FAIL 27 | WARN 29 | SKIP 1 | PASS 92 ] ══ Skipped tests (1) ═══════════════════════════════════════════════════════════ • On CRAN (1): 'test-dissect.R:1:1' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-check_collinearity.R:7:3'): check_collinearity works correctly for multivariable models ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─dplyr::mutate(...) at test-check_collinearity.R:7:3 2. └─dplyr::filter(PimaIndiansDiabetes2, !is.na(diabetes)) ── Error ('test-check_collinearity.R:27:3'): check_collinearity throws error for univariate models ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─dplyr::mutate(...) at test-check_collinearity.R:27:3 2. └─dplyr::filter(PimaIndiansDiabetes2, !is.na(diabetes)) ── Error ('test-check_convergence.R:4:3'): check_convergence runs correctly for valid approaches ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-check_convergence.R:4:3 ── Error ('test-check_convergence.R:98:3'): check_convergence handles model fitting failure ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-check_convergence.R:98:3 ── Error ('test-fit_multi_model.R:7:3'): .fit_multi_model returns correct model class for each approach ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─dplyr::filter(...) at test-fit_multi_model.R:7:3 2. └─dplyr::mutate(...) ── Error ('test-fit_uni_model.R:7:3'): .fit_uni_model returns correct model class (PimaIndiansDiabetes2) ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─dplyr::filter(...) at test-fit_uni_model.R:7:3 2. └─dplyr::mutate(...) ── Error ('test-fit_uni_model.R:55:3'): .fit_uni_model handles model fitting failure gracefully ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-fit_uni_model.R:55:3 ── Error ('test-identify_confounder.R:6:3'): identify_confounder works across approaches using change-in-estimate method ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-identify_confounder.R:6:3 ── Error ('test-interaction_models.R:6:3'): interaction_models returns a list with expected names ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─dplyr::mutate(...) at test-interaction_models.R:6:3 2. └─dplyr::mutate(...) ── Error ('test-interaction_models.R:52:3'): interaction_models handles robpoisson approach ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─dplyr::mutate(...) at test-interaction_models.R:52:3 2. └─dplyr::mutate(...) ── Error ('test-interaction_models.R:84:3'): interaction_models errors with invalid approach ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─dplyr::mutate(...) at test-interaction_models.R:84:3 2. └─dplyr::mutate(...) ── Error ('test-multi_reg.R:11:3'): multi_reg computes estimates correctly across approaches ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-multi_reg.R:11:3 ── Error ('test-plot_reg.R:9:3'): plot_reg works with default settings and correct X-axis labels ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─dplyr::mutate(...) at test-plot_reg.R:9:3 2. └─dplyr::mutate(...) ── Error ('test-plot_reg_combine.R:9:3'): plot_reg_combine works with various options ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-plot_reg_combine.R:9:3 ── Error ('test-select_models.R:8:3'): select_models works for valid approaches and directions ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-select_models.R:8:3 ── Error ('test-stratified_multi_reg.R:9:3'): stratified_multi_reg returns a gtsummary tbl_merge object ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-stratified_multi_reg.R:9:3 ── Error ('test-stratified_multi_reg.R:61:3'): stratified_multi_reg excludes NA values in stratifier ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-stratified_multi_reg.R:61:3 ── Error ('test-stratified_multi_reg.R:109:3'): stratified_multi_reg runs with robpoisson and produces estimates ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-stratified_multi_reg.R:109:3 ── Error ('test-stratified_multi_reg.R:153:3'): stratified_multi_reg works with negbin ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─dplyr::filter(...) at test-stratified_multi_reg.R:153:3 2. └─dplyr::mutate(...) ── Error ('test-stratified_uni_reg.R:4:3'): stratified_uni_reg returns a gtsummary tbl_merge object with logit ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─dplyr::mutate(...) at test-stratified_uni_reg.R:4:3 2. └─dplyr::mutate(...) ── Error ('test-stratified_uni_reg.R:40:3'): stratified_uni_reg excludes NA values in stratifier ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-stratified_uni_reg.R:40:3 ── Error ('test-stratified_uni_reg.R:67:3'): stratified_uni_reg errors for invalid inputs ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-stratified_uni_reg.R:67:3 ── Error ('test-stratified_uni_reg.R:100:3'): stratified_uni_reg works with robpoisson ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-stratified_uni_reg.R:100:3 ── Error ('test-stratified_uni_reg.R:126:3'): stratified_uni_reg works with negbin ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─dplyr::filter(...) at test-stratified_uni_reg.R:126:3 2. └─dplyr::mutate(...) ── Error ('test-stratified_uni_reg.R:163:3'): stratified_uni_reg errors when no valid strata exist ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-stratified_uni_reg.R:163:3 ── Error ('test-uni_reg.R:6:3'): uni_reg returns a gtsummary object and works with binary data ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─tidyr::drop_na(...) at test-uni_reg.R:6:3 2. └─dplyr::mutate(...) ── Error ('test-uni_reg.R:70:3'): uni_reg$ accessors return correct components ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─tidyr::drop_na(PimaIndiansDiabetes2) at test-uni_reg.R:70:3 [ FAIL 27 | WARN 29 | SKIP 1 | PASS 92 ] Error: ! Test failures. Execution halted Flavor: r-release-windows-x86_64

Version: 1.0.0
Check: tests
Result: ERROR Running 'testthat.R' [76s] 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(gtregression) > > test_check("gtregression") Attaching package: 'dplyr' The following objects are masked from 'package:stats': filter, lag The following objects are masked from 'package:base': intersect, setdiff, setequal, union Saving _problems/test-check_collinearity-9.R Saving _problems/test-check_collinearity-29.R Saving _problems/test-check_convergence-19.R Saving _problems/test-check_convergence-113.R # A tibble: 18 x 6 Variable Type `Missing (%)` Unique Levels Compatibility <chr> <chr> <chr> <int> <chr> <chr> 1 pregnant numeric 0% 17 - compatible 2 glucose numeric 0.7% 135 - compatible 3 pressure numeric 4.6% 46 - compatible 4 triceps numeric 29.6% 50 - compatible 5 insulin numeric 48.7% 185 - compatible 6 mass numeric 1.4% 247 - compatible 7 pedigree numeric 0% 517 - compatible 8 age numeric 0% 52 - compatible 9 diabetes numeric 0% 2 - maybe 10 bmi factor 1.4% 3 Normal, Overweight, ~ compatible 11 age_cat factor 0% 3 Young, Middle-aged, ~ compatible 12 npreg_cat factor 0% 2 Low parity, High par~ compatible 13 glucose_cat factor 0.7% 2 Normal, High compatible 14 bp_cat factor 4.6% 2 Normal, High compatible 15 triceps_cat factor 29.6% 2 Normal, High compatible 16 insulin_cat factor 48.7% 3 Low, Normal, High compatible 17 dpf_cat factor 0% 3 Low Genetic Risk, Mo~ compatible 18 diabetes_cat factor 0% 2 Diabetes negative, D~ compatible Interpretation notes: - compatible: ready to use in regression - maybe: require transformation to factor or check no of levels - incompatible: not usable as-is (e.g., all NA, <2 levels) Saving _problems/test-fit_multi_model-23.R Saving _problems/test-fit_uni_model-17.R Saving _problems/test-fit_uni_model-59.R Saving _problems/test-identify_confounder-27.R Saving _problems/test-interaction_models-32.R Saving _problems/test-interaction_models-64.R Saving _problems/test-interaction_models-96.R The number rows in the tables to be merged do not match, which may result in rows appearing out of order. i See `tbl_merge()` (`?gtsummary::tbl_merge()`) help file for details. Use `quiet=TRUE` to silence message. The number rows in the tables to be merged do not match, which may result in rows appearing out of order. i See `tbl_merge()` (`?gtsummary::tbl_merge()`) help file for details. Use `quiet=TRUE` to silence message. Saving _problems/test-multi_reg-50.R Saving _problems/test-plot_reg-43.R Saving _problems/test-plot_reg_combine-56.R Table saved at: D:\temp\2026_08_05_10_55_09_15001\RtmpMPXcwA\regression_results.docx `height` was translated to `width`. Plot saved at: D:\temp\2026_08_05_10_55_09_15001\RtmpMPXcwA\plot_png.png `height` was translated to `width`. Plot saved at: D:\temp\2026_08_05_10_55_09_15001\RtmpMPXcwA\plot_pdf.pdf `height` was translated to `width`. Plot saved at: D:\temp\2026_08_05_10_55_09_15001\RtmpMPXcwA\plot_jpg.jpg `height` was translated to `width`. Word document saved at: D:\temp\2026_08_05_10_55_09_15001\RtmpMPXcwA\final_report.docx If tables or plots extend beyond the page, consider switching to landscape layout in Word (Layout > Orientation > Landscape). Attaching package: 'MASS' The following object is masked from 'package:gtsummary': select The following object is masked from 'package:dplyr': select Saving _problems/test-select_models-25.R Saving _problems/test-stratified_multi_reg-32.R Saving _problems/test-stratified_multi_reg-75.R Saving _problems/test-stratified_multi_reg-120.R Saving _problems/test-stratified_multi_reg-167.R Saving _problems/test-stratified_uni_reg-21.R Saving _problems/test-stratified_uni_reg-46.R Saving _problems/test-stratified_uni_reg-71.R Saving _problems/test-stratified_uni_reg-106.R Saving _problems/test-stratified_uni_reg-142.R Saving _problems/test-stratified_uni_reg-167.R Saving _problems/test-uni_reg-10.R Saving _problems/test-uni_reg-70.R [ FAIL 27 | WARN 29 | SKIP 1 | PASS 92 ] ══ Skipped tests (1) ═══════════════════════════════════════════════════════════ • On CRAN (1): 'test-dissect.R:1:1' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-check_collinearity.R:7:3'): check_collinearity works correctly for multivariable models ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─dplyr::mutate(...) at test-check_collinearity.R:7:3 2. └─dplyr::filter(PimaIndiansDiabetes2, !is.na(diabetes)) ── Error ('test-check_collinearity.R:27:3'): check_collinearity throws error for univariate models ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─dplyr::mutate(...) at test-check_collinearity.R:27:3 2. └─dplyr::filter(PimaIndiansDiabetes2, !is.na(diabetes)) ── Error ('test-check_convergence.R:4:3'): check_convergence runs correctly for valid approaches ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-check_convergence.R:4:3 ── Error ('test-check_convergence.R:98:3'): check_convergence handles model fitting failure ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-check_convergence.R:98:3 ── Error ('test-fit_multi_model.R:7:3'): .fit_multi_model returns correct model class for each approach ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─dplyr::filter(...) at test-fit_multi_model.R:7:3 2. └─dplyr::mutate(...) ── Error ('test-fit_uni_model.R:7:3'): .fit_uni_model returns correct model class (PimaIndiansDiabetes2) ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─dplyr::filter(...) at test-fit_uni_model.R:7:3 2. └─dplyr::mutate(...) ── Error ('test-fit_uni_model.R:55:3'): .fit_uni_model handles model fitting failure gracefully ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-fit_uni_model.R:55:3 ── Error ('test-identify_confounder.R:6:3'): identify_confounder works across approaches using change-in-estimate method ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-identify_confounder.R:6:3 ── Error ('test-interaction_models.R:6:3'): interaction_models returns a list with expected names ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─dplyr::mutate(...) at test-interaction_models.R:6:3 2. └─dplyr::mutate(...) ── Error ('test-interaction_models.R:52:3'): interaction_models handles robpoisson approach ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─dplyr::mutate(...) at test-interaction_models.R:52:3 2. └─dplyr::mutate(...) ── Error ('test-interaction_models.R:84:3'): interaction_models errors with invalid approach ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─dplyr::mutate(...) at test-interaction_models.R:84:3 2. └─dplyr::mutate(...) ── Error ('test-multi_reg.R:11:3'): multi_reg computes estimates correctly across approaches ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-multi_reg.R:11:3 ── Error ('test-plot_reg.R:9:3'): plot_reg works with default settings and correct X-axis labels ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─dplyr::mutate(...) at test-plot_reg.R:9:3 2. └─dplyr::mutate(...) ── Error ('test-plot_reg_combine.R:9:3'): plot_reg_combine works with various options ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-plot_reg_combine.R:9:3 ── Error ('test-select_models.R:8:3'): select_models works for valid approaches and directions ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-select_models.R:8:3 ── Error ('test-stratified_multi_reg.R:9:3'): stratified_multi_reg returns a gtsummary tbl_merge object ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-stratified_multi_reg.R:9:3 ── Error ('test-stratified_multi_reg.R:61:3'): stratified_multi_reg excludes NA values in stratifier ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-stratified_multi_reg.R:61:3 ── Error ('test-stratified_multi_reg.R:109:3'): stratified_multi_reg runs with robpoisson and produces estimates ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-stratified_multi_reg.R:109:3 ── Error ('test-stratified_multi_reg.R:153:3'): stratified_multi_reg works with negbin ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─dplyr::filter(...) at test-stratified_multi_reg.R:153:3 2. └─dplyr::mutate(...) ── Error ('test-stratified_uni_reg.R:4:3'): stratified_uni_reg returns a gtsummary tbl_merge object with logit ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─dplyr::mutate(...) at test-stratified_uni_reg.R:4:3 2. └─dplyr::mutate(...) ── Error ('test-stratified_uni_reg.R:40:3'): stratified_uni_reg excludes NA values in stratifier ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-stratified_uni_reg.R:40:3 ── Error ('test-stratified_uni_reg.R:67:3'): stratified_uni_reg errors for invalid inputs ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-stratified_uni_reg.R:67:3 ── Error ('test-stratified_uni_reg.R:100:3'): stratified_uni_reg works with robpoisson ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-stratified_uni_reg.R:100:3 ── Error ('test-stratified_uni_reg.R:126:3'): stratified_uni_reg works with negbin ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─dplyr::filter(...) at test-stratified_uni_reg.R:126:3 2. └─dplyr::mutate(...) ── Error ('test-stratified_uni_reg.R:163:3'): stratified_uni_reg errors when no valid strata exist ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─dplyr::mutate(...) at test-stratified_uni_reg.R:163:3 ── Error ('test-uni_reg.R:6:3'): uni_reg returns a gtsummary object and works with binary data ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. ├─tidyr::drop_na(...) at test-uni_reg.R:6:3 2. └─dplyr::mutate(...) ── Error ('test-uni_reg.R:70:3'): uni_reg$ accessors return correct components ── Error in `eval(code, test_env)`: object 'PimaIndiansDiabetes2' not found Backtrace: ▆ 1. └─tidyr::drop_na(PimaIndiansDiabetes2) at test-uni_reg.R:70:3 [ FAIL 27 | WARN 29 | SKIP 1 | PASS 92 ] Error: ! Test failures. Execution halted Flavor: r-oldrel-windows-x86_64

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.