Skip to content

Commit

Permalink
use set_ht_opt
Browse files Browse the repository at this point in the history
  • Loading branch information
Yunuuuu committed Jun 26, 2024
1 parent 1c29553 commit 0dc431e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions R/utils-complexheatmap.R
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,7 @@ with_ht_opts <- function(opts, code) {
#' @seealso [with_ht_opts]
#' @export
with_ht_verbose <- function(code, verbose = TRUE) {
old <- ht_opt("verbose")
ht_opt(verbose = verbose)
old <- set_ht_opt("verbose", verbose)
on.exit(ht_opt(verbose = old))
force(code)
}
Expand Down

0 comments on commit 0dc431e

Please sign in to comment.