Skip to content

Commit 357aec6

Browse files
committed
omit ggplot2:: link prefix in ggplot2, but not extensions
1 parent 4868d40 commit 357aec6

33 files changed

+254
-250
lines changed

R/utilities-help.R

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,10 @@ roxy_tag_parse.roxy_tag_aesthetics <- function(x) {
193193
}
194194

195195
roxy_tag_rd.roxy_tag_aesthetics <- function(x, base_path, env) {
196+
# When we document ggplot2 itself, we don't need to prefix links with ggplot2
197+
if (basename(base_path) == "ggplot2") {
198+
x$val <- gsub("\\link[=ggplot2::", "\\link[=", x$val, fixed = TRUE)
199+
}
196200
roxygen2::rd_section("aesthetics", x$val)
197201
}
198202

man/geom_bar.Rd

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

man/geom_bin_2d.Rd

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

man/geom_boxplot.Rd

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

man/geom_contour.Rd

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

man/geom_count.Rd

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

man/geom_density.Rd

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

man/geom_density_2d.Rd

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

0 commit comments

Comments
 (0)