* using log directory 'd:/Rcompile/CRANpkg/local/4.3/gtsummary.Rcheck' * using R version 4.3.3 (2024-02-29 ucrt) * using platform: x86_64-w64-mingw32 (64-bit) * R was compiled by gcc.exe (GCC) 12.3.0 GNU Fortran (GCC) 12.3.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'gtsummary/DESCRIPTION' ... OK * this is package 'gtsummary' version '2.0.2' * package encoding: UTF-8 * checking package namespace information ... OK * checking package dependencies ... OK * checking if this is a source package ... OK * checking if there is a namespace ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'gtsummary' can be installed ... OK * checking installed package size ... OK * checking package directory ... OK * checking 'build' directory ... OK * checking DESCRIPTION meta-information ... OK * checking top-level files ... OK * checking for left-over files ... OK * checking index information ... OK * checking package subdirectories ... OK * checking R files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... [1s] OK * checking whether the package can be loaded with stated dependencies ... [1s] OK * checking whether the package can be unloaded cleanly ... [1s] OK * checking whether the namespace can be loaded with stated dependencies ... [1s] OK * checking whether the namespace can be unloaded cleanly ... [1s] OK * checking loading without being on the library search path ... [1s] OK * checking startup messages can be suppressed ... [1s] OK * checking use of S3 registration ... OK * checking dependencies in R code ... OK * checking S3 generic/method consistency ... OK * checking replacement functions ... OK * checking foreign function calls ... OK * checking R code for possible problems ... [26s] OK * checking Rd files ... [3s] OK * checking Rd metadata ... OK * checking Rd cross-references ... OK * checking for missing documentation entries ... OK * checking for code/documentation mismatches ... OK * checking Rd \usage sections ... OK * checking Rd contents ... OK * checking for unstated dependencies in examples ... OK * checking contents of 'data' directory ... OK * checking data for non-ASCII characters ... [0s] OK * checking LazyData ... OK * checking data for ASCII and uncompressed saves ... OK * checking R/sysdata.rda ... OK * checking installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... [3s] 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) ``(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) ``(``) 47. └─rlang::abort(message, class = error_class, parent = parent, call = error_call) Execution halted * checking for unstated dependencies in 'tests' ... OK * checking tests ... [13s] OK Running 'testthat.R' [13s] * checking for unstated dependencies in vignettes ... OK * checking package vignettes in 'inst/doc' ... OK * checking re-building of vignette outputs ... [8s] 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 * checking PDF version of manual ... [32s] OK * checking HTML version of manual ... [25s] OK * DONE Status: 2 ERRORs