Skip to content

Commit

Permalink
target = "_blank"
Browse files Browse the repository at this point in the history
  • Loading branch information
romainfrancois committed Feb 26, 2024
1 parent be03aae commit ed808ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/auto.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ tip_pkg <- function(pkg, keep_braces = TRUE, text = get_title(url), ...) {
url <- downlit::href_package(pkg)
link_text <- if (keep_braces) "{{{pkg}}}" else "{pkg}"
bslib::tooltip(
tags$a(glue::glue(link_text), href = url, class = "r-link-pkg"),
tags$a(glue::glue(link_text), href = url, target = "_blank", class = "r-link-pkg"),
text,
...
)
Expand All @@ -36,7 +36,7 @@ tip_call <- function(call, keep_pkg_prefix = TRUE, text = get_title(url), ...) {
}

bslib::tooltip(
tags$a(link_text, href = url, class = "r-link-call"),
tags$a(link_text, href = url, target = "_blank", class = "r-link-call"),
text,
...
)
Expand Down

0 comments on commit ed808ee

Please sign in to comment.