Skip to content

Commit

Permalink
Use getFromNamespace instead of ::: to fix S3 dispatch for as_gt()
Browse files Browse the repository at this point in the history
  • Loading branch information
jdblischak committed Nov 15, 2024
1 parent d007ec1 commit d6a4d42
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions R/as_gt.R
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,12 @@ as_gt.simtrial_gs_wlr <- function(x,

#' @export
as_gt.fixed_design <- function(x, ...) {
gsDesign2:::as_gt.fixed_design(x, ...)
f <- utils::getFromNamespace("as_gt.fixed_design", "gsDesign2")
f(x, ...)
}

#' @export
as_gt.gs_design <- function(x, ...) {
gsDesign2:::as_gt.gs_design(x, ...)
f <- utils::getFromNamespace("as_gt.gs_design", "gsDesign2")
f(x, ...)
}

0 comments on commit d6a4d42

Please sign in to comment.