Skip to content

Commit

Permalink
fix option for clickable text
Browse files Browse the repository at this point in the history
  • Loading branch information
RossanaTat committed Sep 5, 2024
1 parent 9048200 commit 10f563a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion R/joyn-merge.R
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ joyn <- function(x,
# get output method option
output_method <- getOption("joyn.output_method", "plain")

if (output_method == "cli") {
if (output_method) {
cli::cli_li(
sprintf(
"Joyn returned {.run [{.strongArg {notes_count} notes}](joyn::joyn_msg('%s'))} and raised
Expand Down
3 changes: 2 additions & 1 deletion R/zzz.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
joyn.match_type = c("1:1", "1:m", "m:1", "m:m"),
joyn.na.last = FALSE,
joyn.msg_type = "basic",
joyn.output_method = if (rstudioapi::isAvailable()) "cli" else "plain"
joyn.output_method = cli::ansi_has_hyperlink_support()

)
toset <- !(names(op.joyn) %in% names(op))

Expand Down

0 comments on commit 10f563a

Please sign in to comment.