Skip to content

Commit

Permalink
use .subset2
Browse files Browse the repository at this point in the history
  • Loading branch information
Yunuuuu committed Jul 23, 2024
1 parent a6b9c83 commit cf70a32
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion R/htanno-.R
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,9 @@ HtannoProto <- ggplot2::ggproto("HtannoProto",
#' @export
`$<-.HtannoProto` <- function(x, name, value) {
if (.subset2(x, "isLock")) {
cli::cli_abort("{.fn {snake_class(x)}} is locked", call = x$call)
cli::cli_abort("{.fn {snake_class(x)}} is locked",
call = .subset2(x, "call")
)
}
assign(x = name, value = value, envir = x)
invisible(x)
Expand Down

0 comments on commit cf70a32

Please sign in to comment.