Skip to content

Commit

Permalink
Merge pull request #467 from jdblischak/as-gt
Browse files Browse the repository at this point in the history
Redirect as_gt() to simtrial when it is masked by gsDesign2::as_gt()
  • Loading branch information
LittleBeannie authored Oct 4, 2024
2 parents 6161b56 + 440bca7 commit f965dae
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: gsDesign2
Title: Group Sequential Design with Non-Constant Effect
Version: 1.1.2.22
Version: 1.1.2.23
Authors@R: c(
person("Keaven", "Anderson", email = "[email protected]", role = c("aut")),
person("Yilong", "Zhang", email = "[email protected]", role = c("aut")),
Expand Down
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

S3method(as_gt,fixed_design)
S3method(as_gt,gs_design)
S3method(as_gt,simtrial_gs_wlr)
S3method(as_rtf,fixed_design)
S3method(as_rtf,gs_design)
S3method(summary,fixed_design)
Expand Down
8 changes: 8 additions & 0 deletions R/as_gt.R
Original file line number Diff line number Diff line change
Expand Up @@ -415,3 +415,11 @@ gsd_parts <- function(
alpha = max(filter(x, Bound == bound[1])[[alpha_column]])
)
}

# Only purpose of the method below is to fix S3 redirection when gsDesign2 is
# loaded after simtrial, which masks the as_gt() generic from simtrial

#' @export
as_gt.simtrial_gs_wlr <- function(x, ...) {
simtrial:::as_gt.simtrial_gs_wlr(x, ...)
}

0 comments on commit f965dae

Please sign in to comment.