Skip to content

Commit

Permalink
Merge pull request #299 from jdblischak/getfromnamespace
Browse files Browse the repository at this point in the history
Use getFromNamespace instead of ::: to fix S3 dispatch for as_gt()
  • Loading branch information
LittleBeannie authored Nov 15, 2024
2 parents d007ec1 + d6a4d42 commit 18a7211
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 18a7211

Please sign in to comment.