diff --git a/DESCRIPTION b/DESCRIPTION index 4b343b8d6..6bcd90204 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -45,7 +45,7 @@ BugReports: https://github.com/ddsjoberg/gtsummary/issues Depends: R (>= 4.2) Imports: - cards (>= 0.2.0.9003), + cards (>= 0.2.1), cli (>= 3.6.1), dplyr (>= 1.1.3), glue (>= 1.6.2), @@ -85,7 +85,6 @@ Suggests: testthat (>= 3.2.0), withr (>= 2.5.0), workflows (>= 0.2.4) -Remotes: insightsengineering/cards VignetteBuilder: knitr RdMacros: diff --git a/R/tbl_summary.R b/R/tbl_summary.R index a9d2121da..122533755 100644 --- a/R/tbl_summary.R +++ b/R/tbl_summary.R @@ -127,7 +127,7 @@ #' @seealso See \href{https://www.danieldsjoberg.com/gtsummary/articles/gallery.html}{table gallery} for additional examples #' @seealso Review [list, formula, and selector syntax][syntax] used throughout gtsummary #' @author Daniel D. Sjoberg -#' @examples +#' @examplesIf identical(Sys.getenv("NOT_CRAN"), "true") || identical(Sys.getenv("IN_PKGDOWN"), "true") #' # Example 1 ---------------------------------- #' trial |> #' select(age, grade, response) |> diff --git a/cran-comments.md b/cran-comments.md index 773014dc5..e9b7e3310 100644 --- a/cran-comments.md +++ b/cran-comments.md @@ -12,35 +12,7 @@ We checked 21 reverse dependencies, comparing R CMD check results across CRAN and dev versions of this package. - * We saw 3 new problems - * We failed to check 3 packages - -Issues with CRAN packages are summarised below. - -All 3 authors of packages with new problems were contacted on 2024-07-01 to alert them of the breaking changes. -For 2 of these 3 packages, I submitted fixes to their public code repositories with the fixes. - -For the 3 packages that failed to be checked, I contacted them on 2024-07-01 to alert them of a _potential_ breaking change. - -### New problems -(This reports the first line of each new failure) - -* gtreg - checking examples ... ERROR - -* IPDFileCheck - checking examples ... ERROR - checking tests ... - -* pubh - checking examples ... ERROR - checking running R code from vignettes ... - -### Failed to check - -* brms.mmrm (NA) -* equatiomatic (NA) -* MiscMetabar (NA) + * We saw 1 new problems in the gtreg pkg. It has already been addressed and will submit a new version to CRAN. ## Additional Comments diff --git a/man/tbl_summary.Rd b/man/tbl_summary.Rd index a99a2f481..ba4cff766 100644 --- a/man/tbl_summary.Rd +++ b/man/tbl_summary.Rd @@ -159,6 +159,7 @@ argument, e.g. \code{value = list(varname ~ "level to show")} } \examples{ +\dontshow{if (identical(Sys.getenv("NOT_CRAN"), "true") || identical(Sys.getenv("IN_PKGDOWN"), "true")) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf} # Example 1 ---------------------------------- trial |> select(age, grade, response) |> @@ -182,6 +183,7 @@ trial |> statistic = all_continuous() ~ c("{median} ({p25}, {p75})", "{min}, {max}"), missing = "no" ) +\dontshow{\}) # examplesIf} } \seealso{ See \href{https://www.danieldsjoberg.com/gtsummary/articles/tbl_summary.html}{tbl_summary vignette} for detailed tutorial