From 89f94a19fa1527dfd882e034f7baeab86fbd7a03 Mon Sep 17 00:00:00 2001 From: olivroy <52606734+olivroy@users.noreply.github.com> Date: Mon, 26 Aug 2024 10:15:42 -0400 Subject: [PATCH 1/3] Fix typo --- R/cols_label.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/cols_label.R b/R/cols_label.R index 7aa435f384..7ea7bdbb56 100644 --- a/R/cols_label.R +++ b/R/cols_label.R @@ -582,7 +582,7 @@ cols_label <- function( #' ```r #' pizzaplace |> #' dplyr::mutate(month = substr(date, 6, 7)) |> -#' dplyr::count(month, name = "pizza_vendute") |> +#' dplyr::count(month, name = "pizze_vendute") |> #' dplyr::mutate(frazione_della_quota = pizze_vendute / 4000) |> #' dplyr::mutate(date = paste0("2015/", month, "/01")) |> #' dplyr::select(-month) |> From 2a59f7273e2c44039c9e591c0800c31ef1d2d554 Mon Sep 17 00:00:00 2001 From: olivroy <52606734+olivroy@users.noreply.github.com> Date: Mon, 26 Aug 2024 10:16:34 -0400 Subject: [PATCH 2/3] typo --- man/cols_label_with.Rd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/man/cols_label_with.Rd b/man/cols_label_with.Rd index 608fcaac71..947cc5eb9d 100644 --- a/man/cols_label_with.Rd +++ b/man/cols_label_with.Rd @@ -123,7 +123,7 @@ interpreted as Markdown text. \if{html}{\out{
}}\preformatted{pizzaplace |> dplyr::mutate(month = substr(date, 6, 7)) |> - dplyr::count(month, name = "pizza_vendute") |> + dplyr::count(month, name = "pizze_vendute") |> dplyr::mutate(frazione_della_quota = pizze_vendute / 4000) |> dplyr::mutate(date = paste0("2015/", month, "/01")) |> dplyr::select(-month) |> From d30f199c16c647d6c8ae438099645d1d3ad11bf5 Mon Sep 17 00:00:00 2001 From: Richard Iannone Date: Tue, 27 Aug 2024 11:33:18 -0400 Subject: [PATCH 3/3] Use fully-qualified name to fix example building --- R/cols_merge.R | 2 +- man/cols_merge_n_pct.Rd | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/R/cols_merge.R b/R/cols_merge.R index 2ec22171a3..358a894ee1 100644 --- a/R/cols_merge.R +++ b/R/cols_merge.R @@ -777,7 +777,7 @@ cols_merge_range <- function( #' ```r #' pizzaplace |> #' dplyr::count(name, type, price, sort = TRUE) |> -#' mutate(frac = prop.table(n)) |> +#' dplyr::mutate(frac = prop.table(n)) |> #' dplyr::slice_max(n, n = 3, by = type) |> #' dplyr::arrange(type) |> #' gt( diff --git a/man/cols_merge_n_pct.Rd b/man/cols_merge_n_pct.Rd index d178bf1029..a10ed63a18 100644 --- a/man/cols_merge_n_pct.Rd +++ b/man/cols_merge_n_pct.Rd @@ -110,7 +110,7 @@ merge the \code{n} and \code{frac} columns (and the \code{frac} column is format \if{html}{\out{
}}\preformatted{pizzaplace |> dplyr::count(name, type, price, sort = TRUE) |> - mutate(frac = prop.table(n)) |> + dplyr::mutate(frac = prop.table(n)) |> dplyr::slice_max(n, n = 3, by = type) |> dplyr::arrange(type) |> gt(