Skip to content

Commit

Permalink
capture package too
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelChirico authored Dec 6, 2023
1 parent d69f0a4 commit f593d2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/zzz.R
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ default_undesirable_functions <- all_undesirable_functions[names(all_undesirable

rd_auto_link <- function(x) {
x <- unlist(x)
x <- gsub("withr::([a-zA-Z0-9._]+)\\(\\)", "\\\\code{\\\\link[withr:\\1]{withr::\\1()}}", x)
x <- gsub("([a-zA-Z0-9.]+)::([a-zA-Z0-9._]+)\\(\\)", "\\\\code{\\\\link[\\1:\\2]{\\1::\\2()}}", x)
x <- gsub("([^:a-zA-Z0-9._])([a-zA-Z0-9._]+)\\(\\)", "\\1\\\\code{\\\\link[=\\2]{\\2()}}", x)
x <- gsub("`([^`]+)`", "\\\\code{\\1}", x)
x
Expand Down

0 comments on commit f593d2e

Please sign in to comment.