Skip to content

Commit f965dae

Browse files
Merge pull request #467 from jdblischak/as-gt
Redirect as_gt() to simtrial when it is masked by gsDesign2::as_gt()
2 parents 6161b56 + 440bca7 commit f965dae

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

DESCRIPTION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: gsDesign2
22
Title: Group Sequential Design with Non-Constant Effect
3-
Version: 1.1.2.22
3+
Version: 1.1.2.23
44
Authors@R: c(
55
person("Keaven", "Anderson", email = "[email protected]", role = c("aut")),
66
person("Yilong", "Zhang", email = "[email protected]", role = c("aut")),

NAMESPACE

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
S3method(as_gt,fixed_design)
44
S3method(as_gt,gs_design)
5+
S3method(as_gt,simtrial_gs_wlr)
56
S3method(as_rtf,fixed_design)
67
S3method(as_rtf,gs_design)
78
S3method(summary,fixed_design)

R/as_gt.R

+8
Original file line numberDiff line numberDiff line change
@@ -415,3 +415,11 @@ gsd_parts <- function(
415415
alpha = max(filter(x, Bound == bound[1])[[alpha_column]])
416416
)
417417
}
418+
419+
# Only purpose of the method below is to fix S3 redirection when gsDesign2 is
420+
# loaded after simtrial, which masks the as_gt() generic from simtrial
421+
422+
#' @export
423+
as_gt.simtrial_gs_wlr <- function(x, ...) {
424+
simtrial:::as_gt.simtrial_gs_wlr(x, ...)
425+
}

0 commit comments

Comments
 (0)