From 10c867886f5f4d380d05f3e1a2a108a0578d06f9 Mon Sep 17 00:00:00 2001 From: Teun van den Brand Date: Mon, 8 Sep 2025 10:23:10 +0200 Subject: [PATCH 1/2] redocument --- DESCRIPTION | 2 +- man/fortify-multcomp.Rd | 2 +- man/fortify.lm.Rd | 2 +- man/ggplot2-package.Rd | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index 754c038ea6..7637cc7b25 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -83,7 +83,7 @@ Config/usethis/last-upkeep: 2025-04-23 Encoding: UTF-8 LazyData: true Roxygen: list(markdown = TRUE) -RoxygenNote: 7.3.2 +RoxygenNote: 7.3.3 Collate: 'ggproto.R' 'ggplot-global.R' diff --git a/man/fortify-multcomp.Rd b/man/fortify-multcomp.Rd index 654e5bbe9a..273bf4e2f7 100644 --- a/man/fortify-multcomp.Rd +++ b/man/fortify-multcomp.Rd @@ -29,7 +29,7 @@ This function is deprecated because using \code{broom::tidy()} is a better solution to convert model objects. } \examples{ -\dontshow{if (require("multcomp") && require("broom")) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf} +\dontshow{if (require("multcomp") && require("broom")) withAutoprint(\{ # examplesIf} amod <- aov(breaks ~ wool + tension, data = warpbreaks) wht <- multcomp::glht(amod, linfct = multcomp::mcp(tension = "Tukey")) diff --git a/man/fortify.lm.Rd b/man/fortify.lm.Rd index d98b28a07f..809f242656 100644 --- a/man/fortify.lm.Rd +++ b/man/fortify.lm.Rd @@ -32,7 +32,7 @@ If you have missing values in your model data, you may need to refit the model with \code{na.action = na.exclude}. } \examples{ -\dontshow{if (require("broom")) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf} +\dontshow{if (require("broom")) withAutoprint(\{ # examplesIf} mod <- lm(mpg ~ wt, data = mtcars) # Show augmented model diff --git a/man/ggplot2-package.Rd b/man/ggplot2-package.Rd index 4a57a87766..be117251b8 100644 --- a/man/ggplot2-package.Rd +++ b/man/ggplot2-package.Rd @@ -37,7 +37,7 @@ Authors: Other contributors: \itemize{ - \item Posit, PBC (03wc8by49) [copyright holder, funder] + \item Posit, PBC (\href{https://ror.org/03wc8by49}{ROR}) [copyright holder, funder] } } From 154250cd536a6864efed55201c2f4475394c4731 Mon Sep 17 00:00:00 2001 From: Teun van den Brand Date: Mon, 8 Sep 2025 10:31:21 +0200 Subject: [PATCH 2/2] fix links to non-topics --- R/labeller.R | 2 +- R/scale-expansion.R | 2 +- R/stat-contour.R | 2 +- R/theme.R | 2 +- man/theme.Rd | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/R/labeller.R b/R/labeller.R index 9a80fca9ea..97311b9946 100644 --- a/R/labeller.R +++ b/R/labeller.R @@ -538,7 +538,7 @@ build_strip <- function(label_df, labeller, theme, horizontal) { #' Takes the output from title_spec, adds margins, creates gList with strip #' background and label, and returns gtable matrix. #' -#' @param grobs Output from [titleGrob()]. +#' @param grobs Output from `titleGrob()`. #' @param theme Theme object. #' @param horizontal Whether the strips are horizontal (e.g. x facets) or not. #' @param clip should drawing be clipped to the specified cells (‘"on"’),the diff --git a/R/scale-expansion.R b/R/scale-expansion.R index 89b8bd06ad..98a6915d9d 100644 --- a/R/scale-expansion.R +++ b/R/scale-expansion.R @@ -132,7 +132,7 @@ default_expansion <- function(scale, discrete = expansion(add = 0.6), #' will fall back to the `limits`. In `expand_limits_scale()`, `coord_limits` #' are in user data space and can be `NULL` (unspecified), since the transformation #' from user to mapped space is different for each scale. -#' @param expand An expansion generated by [expansion()] or [default_expansion()]. +#' @param expand An expansion generated by [expansion()] or `default_expansion()`. #' @param trans The coordinate system transformation. #' #' @return A list with components `continuous_range`, which is the diff --git a/R/stat-contour.R b/R/stat-contour.R index d299d68f01..ca984909fa 100644 --- a/R/stat-contour.R +++ b/R/stat-contour.R @@ -278,7 +278,7 @@ iso_to_geom <- function(iso, group = 1, geom = "path") { #' @param isoband_levels `names()` of an [isoband::isobands()] object. #' #' @return A vector of labels like those used in -#' [cut()] and [cut_inverval()]. +#' [cut()] and `cut_inverval()`. #' @noRd #' pretty_isoband_levels <- function(isoband_levels, dig.lab = 3) { diff --git a/R/theme.R b/R/theme.R index 63e410fb20..07a13db64a 100644 --- a/R/theme.R +++ b/R/theme.R @@ -217,7 +217,7 @@ #' @param validate `TRUE` to run `check_element()`, `FALSE` to bypass checks. #' @export #' @seealso -#' [add_gg()] and [%+replace%], +#' [add_gg()] and [`%+replace%`][get_theme()], #' [element_blank()], [element_line()], #' [element_rect()], and [element_text()] for #' details of the specific theme elements. diff --git a/man/theme.Rd b/man/theme.Rd index c1a7213da7..ad95fb1d86 100644 --- a/man/theme.Rd +++ b/man/theme.Rd @@ -534,7 +534,7 @@ p4 + aes(colour = drat) + } } \seealso{ -\code{\link[=add_gg]{add_gg()}} and \link{\%+replace\%}, +\code{\link[=add_gg]{add_gg()}} and \code{\link[=get_theme]{\%+replace\%}}, \code{\link[=element_blank]{element_blank()}}, \code{\link[=element_line]{element_line()}}, \code{\link[=element_rect]{element_rect()}}, and \code{\link[=element_text]{element_text()}} for details of the specific theme elements.