diff --git a/README.Rmd b/README.Rmd index 8c0219b..beb6dd4 100644 --- a/README.Rmd +++ b/README.Rmd @@ -59,12 +59,13 @@ The `tidycmprsk` plays well with other packages, such as `gtsummary`. tbl <- crr_mod %>% gtsummary::tbl_regression(exponentiate = TRUE) %>% + gtsummary::add_global_p(anova_fun = gtsummary::tidy_wald_test) %>% add_n(location = "level") ``` ```{r gtsummary_print, include = FALSE} # Had to manually save images in temp file, not sure if better way. -gt::gtsave(gtsummary::as_gt(tbl), file = file.path(tempdir(), "temp.png")) +gt::gtsave(gtsummary::as_gt(tbl), file = "man/figures/README-gtsummary-crr.png") ``` ```{r out.width = "50%", echo = FALSE} @@ -72,7 +73,7 @@ gt::gtsave(gtsummary::as_gt(tbl), file = file.path(tempdir(), "temp.png")) if (identical(Sys.getenv("IN_PKGDOWN"), "true")) { tbl } else { - knitr::include_graphics("man/figures/README-gtsummary_print-1.png") + knitr::include_graphics("man/figures/README-gtsummary-crr.png") } ``` @@ -109,7 +110,7 @@ tbl <- ```{r gtsummary_print2, include = FALSE} # Had to manually save images in temp file, not sure if better way. -gt::gtsave(gtsummary::as_gt(tbl), file = file.path(tempdir(), "temp.png")) +gt::gtsave(gtsummary::as_gt(tbl), file = "man/figures/README-gtsummary-cuminc.png") ``` ```{r out.width = "70%", echo = FALSE} @@ -117,7 +118,7 @@ gt::gtsave(gtsummary::as_gt(tbl), file = file.path(tempdir(), "temp.png")) if (identical(Sys.getenv("IN_PKGDOWN"), "true")) { tbl } else { - knitr::include_graphics("man/figures/README-gtsummary_print2-1.png") + knitr::include_graphics("man/figures/README-gtsummary-cuminc.png") } ``` @@ -130,4 +131,4 @@ By contributing to this project, you agree to abide by its terms. Thank you to a #### Limitations The `tidycmprsk` package implements most features (and more) available in `cmprsk`. -However, the time interaction features available in `cmprsk::crr()` have not yet been made available in `tidycmprsk`. +However, the time interaction features available in `cmprsk::crr()` is not available in `tidycmprsk`. diff --git a/README.md b/README.md index 4d10c39..dcb5dc5 100644 --- a/README.md +++ b/README.md @@ -63,10 +63,11 @@ The `tidycmprsk` plays well with other packages, such as `gtsummary`. tbl <- crr_mod %>% gtsummary::tbl_regression(exponentiate = TRUE) %>% + gtsummary::add_global_p(anova_fun = gtsummary::tidy_wald_test) %>% add_n(location = "level") ``` - + ``` r gtsummary::inline_text(tbl, variable = age) @@ -118,7 +119,7 @@ tbl <- add_n() ``` - + ## Contributing @@ -145,4 +146,4 @@ you to all contributors! The `tidycmprsk` package implements most features (and more) available in `cmprsk`. However, the time interaction features available in -`cmprsk::crr()` have not yet been made available in `tidycmprsk`. +`cmprsk::crr()` is not available in `tidycmprsk`. diff --git a/man/figures/README-gtsummary-crr.png b/man/figures/README-gtsummary-crr.png new file mode 100644 index 0000000..5ee7fcb Binary files /dev/null and b/man/figures/README-gtsummary-crr.png differ diff --git a/man/figures/README-gtsummary-cuminc.png b/man/figures/README-gtsummary-cuminc.png new file mode 100644 index 0000000..d0b37d4 Binary files /dev/null and b/man/figures/README-gtsummary-cuminc.png differ diff --git a/man/figures/README-gtsummary_print-1.png b/man/figures/README-gtsummary_print-1.png deleted file mode 100644 index f3bc88c..0000000 Binary files a/man/figures/README-gtsummary_print-1.png and /dev/null differ diff --git a/man/figures/README-gtsummary_print2-1.png b/man/figures/README-gtsummary_print2-1.png deleted file mode 100644 index 7e08569..0000000 Binary files a/man/figures/README-gtsummary_print2-1.png and /dev/null differ diff --git a/man/figures/README-unnamed-chunk-4-1.png b/man/figures/README-unnamed-chunk-4-1.png deleted file mode 100644 index 16f2f15..0000000 Binary files a/man/figures/README-unnamed-chunk-4-1.png and /dev/null differ