CRAN Package Check Results for Package gtsummary

Last updated on 2024-10-05 15:49:24 CEST.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 2.0.2 17.52 124.23 141.75 ERROR
r-devel-linux-x86_64-debian-gcc 2.0.2 7.65 81.91 89.56 ERROR
r-devel-linux-x86_64-fedora-clang 2.0.3 838.56 ERROR
r-devel-linux-x86_64-fedora-gcc 2.0.2 219.86 ERROR
r-devel-windows-x86_64 2.0.2 20.00 145.00 165.00 ERROR
r-patched-linux-x86_64 2.0.2 19.85 117.42 137.27 ERROR
r-release-linux-x86_64 2.0.2 15.46 113.82 129.28 ERROR
r-release-macos-arm64 2.0.3 152.00 OK
r-release-macos-x86_64 2.0.3 231.00 OK
r-release-windows-x86_64 2.0.3 17.00 421.00 438.00 OK
r-oldrel-macos-arm64 2.0.3 193.00 OK
r-oldrel-macos-x86_64 2.0.3 270.00 OK
r-oldrel-windows-x86_64 2.0.2 22.00 169.00 191.00 ERROR

Check Details

Version: 2.0.2
Check: examples
Result: ERROR Running examples in ‘gtsummary-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: add_ci > ### Title: Add CI Column > ### Aliases: add_ci add_ci.tbl_summary > > ### ** Examples > > ## Don't show: > if (gtsummary:::is_pkg_installed("cardx", reference_pkg = "gtsummary") && gtsummary:::is_pkg_installed("broom", reference_pkg = "cardx")) (if (getRversion() >= "3.4") withAutoprint else force)({ # examplesIf + ## End(Don't show) + # Example 1 ---------------------------------- + trial |> + tbl_summary( + missing = "no", + statistic = all_continuous() ~ "{mean} ({sd})", + include = c(marker, response, trt) + ) |> + add_ci() + + # Example 2 ---------------------------------- + trial |> + select(response, grade) %>% + tbl_summary( + statistic = all_categorical() ~ "{p}%", + missing = "no", + include = c(response, grade) + ) |> + add_ci(pattern = "{stat} ({ci})") |> + modify_footnote(everything() ~ NA) + ## Don't show: + }) # examplesIf > add_ci(tbl_summary(trial, missing = "no", statistic = all_continuous() ~ + "{mean} ({sd})", include = c(marker, response, trt))) Error in `dplyr::mutate()`: ℹ In argument: `stat = as.character(...)`. Caused by error in `glue_data()`: ! is.environment(.envir) is not TRUE Backtrace: ▆ 1. ├─(if (getRversion() >= "3.4") withAutoprint else force)(...) 2. │ └─base::source(...) 3. │ ├─base::withVisible(eval(ei, envir)) 4. │ └─base::eval(ei, envir) 5. │ └─base::eval(ei, envir) 6. ├─gtsummary::add_ci(...) 7. │ └─gtsummary:::check_class(x, "gtsummary") 8. ├─gtsummary::tbl_summary(...) 9. │ ├─base::structure(...) 10. │ ├─base::append(...) 11. │ └─gtsummary::brdg_summary(...) 12. │ ├─dplyr::left_join(...) 13. │ ├─dplyr:::left_join.data.frame(...) 14. │ │ └─dplyr::auto_copy(x, y, copy = copy) 15. │ │ ├─dplyr::same_src(x, y) 16. │ │ └─dplyr:::same_src.data.frame(x, y) 17. │ │ └─base::is.data.frame(y) 18. │ ├─dplyr::bind_rows(...) 19. │ │ └─rlang::list2(...) 20. │ └─gtsummary::pier_summary_continuous(...) 21. │ ├─... %>% ... 22. │ ├─dplyr::bind_rows(...) 23. │ │ └─rlang::list2(...) 24. │ ├─dplyr::group_map(...) 25. │ └─dplyr:::group_map.data.frame(...) 26. │ └─dplyr:::map2(chunks, group_keys, .f, ...) 27. │ └─base::mapply(.f, .x, .y, MoreArgs = list(...), SIMPLIFY = FALSE) 28. │ └─gtsummary (local) `<fn>`(dots[[1L]][[1L]], dots[[2L]][[1L]]) 29. │ ├─dplyr::mutate(...) 30. │ └─dplyr:::mutate.data.frame(...) 31. │ └─dplyr:::mutate_cols(.data, dplyr_quosures(...), by) 32. │ ├─base::withCallingHandlers(...) 33. │ └─dplyr:::mutate_col(dots[[i]], data, mask, new_columns) 34. │ └─mask$eval_all_mutate(quo) 35. │ └─dplyr (local) eval() 36. ├─dplyr::left_join(...) 37. ├─dplyr:::left_join.data.frame(...) 38. │ └─dplyr::auto_copy(x, y, copy = copy) 39. │ ├─dplyr::same_src(x, y) 40. │ └─dplyr:::same_src.data.frame(x, y) 41. │ └─base::is.data.frame(y) 42. ├─glue::glue(...) 43. │ └─glue::glue_data(...) 44. │ └─base::stopifnot(is.environment(.envir)) 45. │ └─base::stop(simpleError(msg, call = if (p <- sys.parent(1L)) sys.call(p))) 46. └─dplyr (local) `<fn>`(`<smplErrr>`) 47. └─rlang::abort(message, class = error_class, parent = parent, call = error_call) 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: 2.0.2
Check: re-building of vignette outputs
Result: ERROR Error(s) in re-building vignettes: ... --- re-building ‘gtsummary_definition.Rmd’ using rmarkdown Quitting from lines 27-38 [setup] (gtsummary_definition.Rmd) Error: processing vignette 'gtsummary_definition.Rmd' failed with diagnostics: ℹ In argument: `stat = as.character(...)`. Caused by error in `glue_data()`: ! is.environment(.envir) is not TRUE --- failed re-building ‘gtsummary_definition.Rmd’ SUMMARY: processing the following file failed: ‘gtsummary_definition.Rmd’ Error: Vignette re-building failed. 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: 2.0.3
Check: examples
Result: ERROR Running examples in ‘gtsummary-Ex.R’ failed The error most likely occurred in: > ### Name: tbl_svysummary > ### Title: Create a table of summary statistics from a survey object > ### Aliases: tbl_svysummary > > ### ** Examples > > ## Don't show: > if (gtsummary:::is_pkg_installed(c("cardx", "survey"), reference_pkg = "gtsummary")) (if (getRversion() >= "3.4") withAutoprint else force)({ # examplesIf + ## End(Don't show) + # Example 1 ---------------------------------- + survey::svydesign(~1, data = as.data.frame(Titanic), weights = ~Freq) |> + tbl_svysummary(by = Survived, percent = "row", include = c(Class, Age)) + + # Example 2 ---------------------------------- + # A dataset with a complex design + data(api, package = "survey") + survey::svydesign(id = ~dnum, weights = ~pw, data = apiclus1, fpc = ~fpc) |> + tbl_svysummary(by = "both", include = c(api00, stype)) |> + modify_spanning_header(all_stat_cols() ~ "**Survived**") + ## Don't show: + }) # examplesIf > tbl_svysummary(survey::svydesign(~1, data = as.data.frame(Titanic), weights = ~Freq), + by = Survived, percent = "row", include = c(Class, Age)) Execution halted Flavor: r-devel-linux-x86_64-fedora-clang

Version: 2.0.2
Check: examples
Result: ERROR Running examples in ‘gtsummary-Ex.R’ failed The error most likely occurred in: > ### Name: add_ci > ### Title: Add CI Column > ### Aliases: add_ci add_ci.tbl_summary > > ### ** Examples > > ## Don't show: > if (gtsummary:::is_pkg_installed("cardx", reference_pkg = "gtsummary") && gtsummary:::is_pkg_installed("broom", reference_pkg = "cardx")) (if (getRversion() >= "3.4") withAutoprint else force)({ # examplesIf + ## End(Don't show) + # Example 1 ---------------------------------- + trial |> + tbl_summary( + missing = "no", + statistic = all_continuous() ~ "{mean} ({sd})", + include = c(marker, response, trt) + ) |> + add_ci() + + # Example 2 ---------------------------------- + trial |> + select(response, grade) %>% + tbl_summary( + statistic = all_categorical() ~ "{p}%", + missing = "no", + include = c(response, grade) + ) |> + add_ci(pattern = "{stat} ({ci})") |> + modify_footnote(everything() ~ NA) + ## Don't show: + }) # examplesIf > add_ci(tbl_summary(trial, missing = "no", statistic = all_continuous() ~ + "{mean} ({sd})", include = c(marker, response, trt))) Error in `dplyr::mutate()`: ℹ In argument: `stat = as.character(...)`. Caused by error in `glue_data()`: ! is.environment(.envir) is not TRUE Backtrace: ▆ 1. ├─(if (getRversion() >= "3.4") withAutoprint else force)(...) 2. │ └─base::source(...) 3. │ ├─base::withVisible(eval(ei, envir)) 4. │ └─base::eval(ei, envir) 5. │ └─base::eval(ei, envir) 6. ├─gtsummary::add_ci(...) 7. │ └─gtsummary:::check_class(x, "gtsummary") 8. ├─gtsummary::tbl_summary(...) 9. │ ├─base::structure(...) 10. │ ├─base::append(...) 11. │ └─gtsummary::brdg_summary(...) 12. │ ├─dplyr::left_join(...) 13. │ ├─dplyr:::left_join.data.frame(...) 14. │ │ └─dplyr::auto_copy(x, y, copy = copy) 15. │ │ ├─dplyr::same_src(x, y) 16. │ │ └─dplyr:::same_src.data.frame(x, y) 17. │ │ └─base::is.data.frame(y) 18. │ ├─dplyr::bind_rows(...) 19. │ │ └─rlang::list2(...) 20. │ └─gtsummary::pier_summary_continuous(...) 21. │ ├─... %>% ... 22. │ ├─dplyr::bind_rows(...) 23. │ │ └─rlang::list2(...) 24. │ ├─dplyr::group_map(...) 25. │ └─dplyr:::group_map.data.frame(...) 26. │ └─dplyr:::map2(chunks, group_keys, .f, ...) 27. │ └─base::mapply(.f, .x, .y, MoreArgs = list(...), SIMPLIFY = FALSE) 28. │ └─gtsummary (local) `<fn>`(dots[[1L]][[1L]], dots[[2L]][[1L]]) 29. │ ├─dplyr::mutate(...) 30. │ └─dplyr:::mutate.data.frame(...) 31. │ └─dplyr:::mutate_cols(.data, dplyr_quosures(...), by) 32. │ ├─base::withCallingHandlers(...) 33. │ └─dplyr:::mutate_col(dots[[i]], data, mask, new_columns) 34. │ └─mask$eval_all_mutate(quo) 35. │ └─dplyr (local) eval() 36. ├─dplyr::left_join(...) 37. ├─dplyr:::left_join.data.frame(...) 38. │ └─dplyr::auto_copy(x, y, copy = copy) 39. │ ├─dplyr::same_src(x, y) 40. │ └─dplyr:::same_src.data.frame(x, y) 41. │ └─base::is.data.frame(y) 42. ├─glue::glue(...) 43. │ └─glue::glue_data(...) 44. │ └─base::stopifnot(is.environment(.envir)) 45. │ └─base::stop(simpleError(msg, call = if (p <- sys.parent(1L)) sys.call(p))) 46. └─dplyr (local) `<fn>`(`<smplErrr>`) 47. └─rlang::abort(message, class = error_class, parent = parent, call = error_call) Execution halted Flavors: r-devel-linux-x86_64-fedora-gcc, r-devel-windows-x86_64, r-oldrel-windows-x86_64

Version: 2.0.2
Check: re-building of vignette outputs
Result: ERROR Error(s) in re-building vignettes: --- re-building ‘gtsummary_definition.Rmd’ using rmarkdown Quitting from lines 27-38 [setup] (gtsummary_definition.Rmd) Error: processing vignette 'gtsummary_definition.Rmd' failed with diagnostics: ℹ In argument: `stat = as.character(...)`. Caused by error in `glue_data()`: ! is.environment(.envir) is not TRUE --- failed re-building ‘gtsummary_definition.Rmd’ SUMMARY: processing the following file failed: ‘gtsummary_definition.Rmd’ Error: Vignette re-building failed. Execution halted Flavors: r-devel-linux-x86_64-fedora-gcc, r-devel-windows-x86_64, r-oldrel-windows-x86_64