Skip to content

Commit d4829c7

Browse files
committed
Revise cells_stub() examples
1 parent ea3c089 commit d4829c7

File tree

2 files changed

+18
-6
lines changed

2 files changed

+18
-6
lines changed

R/helpers.R

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1687,7 +1687,6 @@ cells_group <- function(groups = everything()) {
16871687
#' with a table that has multiple stub columns:
16881688
#'
16891689
#' ```r
1690-
#' # Create a table with multi-column stub
16911690
#' dplyr::tibble(
16921691
#' country = rep(c("USA", "Canada"), each = 3),
16931692
#' region = rep(c("North", "South", "West"), 2),
@@ -1705,11 +1704,14 @@ cells_group <- function(groups = everything()) {
17051704
#' )
17061705
#' ```
17071706
#'
1707+
#' \if{html}{\out{
1708+
#' `r man_get_image_tag(file = "man_cells_stub_2.png")`
1709+
#' }}
1710+
#'
17081711
#' You can also use content-based targeting to target rows by their actual values
17091712
#' rather than calculating row indices:
17101713
#'
17111714
#' ```r
1712-
#' # Content-based targeting example
17131715
#' gtcars |>
17141716
#' dplyr::select(mfr, model, year, hp, msrp) |>
17151717
#' dplyr::slice(1:8) |>
@@ -1724,6 +1726,10 @@ cells_group <- function(groups = everything()) {
17241726
#' )
17251727
#' ```
17261728
#'
1729+
#' \if{html}{\out{
1730+
#' `r man_get_image_tag(file = "man_cells_stub_3.png")`
1731+
#' }}
1732+
#'
17271733
#' @family location helper functions
17281734
#' @section Function ID:
17291735
#' 8-17

man/cells_stub.Rd

Lines changed: 10 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)