Skip to content

Commit d5ff3a6

Browse files
authored
fix: correct Rd link syntax for aesthetics roxygen2 tag (#6538)
1 parent c68d9fc commit d5ff3a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

R/utilities-help.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ rd_match_docpage <- function(aes) {
7878
)[index + 1]
7979
no_match <- index == 0
8080
docpage[!no_match] <- paste0(
81-
"\\link[=ggplot2::", docpage[!no_match],
81+
"\\link[ggplot2:", docpage[!no_match],
8282
"]{", flat[!no_match], "}"
8383
)
8484
docpage[no_match] <- flat[no_match]
@@ -195,7 +195,7 @@ roxy_tag_parse.roxy_tag_aesthetics <- function(x) {
195195
roxy_tag_rd.roxy_tag_aesthetics <- function(x, base_path, env) {
196196
# When we document ggplot2 itself, we don't need to prefix links with ggplot2
197197
if (basename(base_path) == "ggplot2") {
198-
x$val <- gsub("\\link[=ggplot2::", "\\link[=", x$val, fixed = TRUE)
198+
x$val <- gsub("\\link[ggplot2:", "\\link[=", x$val, fixed = TRUE)
199199
}
200200
roxygen2::rd_section("aesthetics", x$val)
201201
}

0 commit comments

Comments
 (0)