Skip to content

fix: correct Rd link syntax for aesthetics roxygen2 tag #6538

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 2, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions R/utilities-help.R
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
)[index + 1]
no_match <- index == 0
docpage[!no_match] <- paste0(
"\\link[=ggplot2::", docpage[!no_match],
"\\link[ggplot2:", docpage[!no_match],

Check warning on line 81 in R/utilities-help.R

View check run for this annotation

Codecov / codecov/patch

R/utilities-help.R#L81

Added line #L81 was not covered by tests
"]{", flat[!no_match], "}"
)
docpage[no_match] <- flat[no_match]
Expand Down Expand Up @@ -195,7 +195,7 @@
roxy_tag_rd.roxy_tag_aesthetics <- function(x, base_path, env) {
# When we document ggplot2 itself, we don't need to prefix links with ggplot2
if (basename(base_path) == "ggplot2") {
x$val <- gsub("\\link[=ggplot2::", "\\link[=", x$val, fixed = TRUE)
x$val <- gsub("\\link[ggplot2:", "\\link[=", x$val, fixed = TRUE)

Check warning on line 198 in R/utilities-help.R

View check run for this annotation

Codecov / codecov/patch

R/utilities-help.R#L198

Added line #L198 was not covered by tests
}
roxygen2::rd_section("aesthetics", x$val)
}
Expand Down