Skip to content

Commit

Permalink
Update tests to run via devtools::test()
Browse files Browse the repository at this point in the history
  • Loading branch information
jdblischak committed Dec 13, 2023
1 parent 50067c4 commit 054b397
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/fixed_design_rd.R
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ fixed_design_rd <- function(
alpha = alpha, beta = 1 - power, ratio = ratio,
upper = gs_b, upar = qnorm(1 - alpha),
lower = gs_b, lpar = -Inf,
rd0 = rd0, weight = "unstratified"
rd0 = rd0, weight = "unstratified",
h1_spending = FALSE
)
}
# get the output of MaxCombo
Expand Down
2 changes: 2 additions & 0 deletions tests/testthat/test-independent-gs_power_ahr.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Test 1: compare with gsDesign under proportional hazard ####

library(gsDesign)

x <- gsSurv(
k = 2,
test.type = 1,
Expand Down

0 comments on commit 054b397

Please sign in to comment.