Skip to content

Commit

Permalink
fix broken links
Browse files Browse the repository at this point in the history
  • Loading branch information
teunbrand committed Dec 15, 2024
1 parent e19cd6d commit 6e59719
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 28 deletions.
2 changes: 1 addition & 1 deletion R/geom_outline_point.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#'
#' @return A ggplot `Layer`
#' @export
#' @eval ggplot2:::rd_aesthetics("geom", "outline_point")
#' @eval fixup_docs(ggplot2:::rd_aesthetics("geom", "outline_point"))
#'
#' @details Due to the way this geom is implemented, it handles the `alpha`
#' aesthetic pretty ungracefully.
Expand Down
2 changes: 1 addition & 1 deletion R/geom_text_aimed.R
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#' @note When using this geom to aim text at the centre of a polar plot, make
#' sure the radius range does not have close to zero width.
#'
#' @eval ggplot2:::rd_aesthetics("geom", "text_aimed")
#' @eval fixup_docs(ggplot2:::rd_aesthetics("geom", "text_aimed"))
#' @examples
#' # Point all labels to upper right corner
#' ggplot(mtcars, aes(mpg, wt)) +
Expand Down
2 changes: 1 addition & 1 deletion R/stat_difference.R
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#' When there is a run of more than two 0-difference values, the inner values
#' will be ignored.
#'
#' @eval ggplot2:::rd_aesthetics("geom", "ribbon")
#' @eval fixup_docs(ggplot2:::rd_aesthetics("geom", "ribbon"))
#' @section Computed variables: \describe{
#' \item{`sign`}{A `factor` with the `levels` attribute set to the `levels`
#' argument.}
Expand Down
4 changes: 4 additions & 0 deletions R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ height_cm <- function(x) {
}
}

fixup_docs <- function(x) {
gsub("\\[=aes", "\\[ggplot2:aes", x)
}

# ggplot internals --------------------------------------------------------

data_frame0 <- function(...) {data_frame(..., .name_repair = "minimal")}
Expand Down
16 changes: 8 additions & 8 deletions man/geom_outline_point.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions man/geom_text_aimed.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 9 additions & 9 deletions man/stat_difference.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6e59719

Please sign in to comment.