Skip to content

Commit

Permalink
use a single paste0()
Browse files Browse the repository at this point in the history
  • Loading branch information
yihui committed Aug 30, 2024
1 parent 943121d commit 6de4e78
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions R/summary.R
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,10 @@ summary.fixed_design <- function(object, ...) {
milestone = paste0("Milestone: tau = ", x$design_par$tau),
rmst = paste0("RMST: tau = ", x$design_par$tau),
mb = paste0("Modestly weighted LR: tau = ", x$design_par$tau),
fh = if (x$design_par$rho == 0 & x$design_par$gamma == 0) {
paste0("Fleming-Harrington FH(0, 0) (logrank)")
} else {
paste0("Fleming-Harrington FH(", x$design_par$rho, ", ", x$design_par$gamma, ")")
},
fh = paste0(
"Fleming-Harrington FH(", x$design_par$rho, ", ", x$design_par$gamma, ")",
if (x$design_par$rho == 0 && x$design_par$gamma == 0) " (logrank)"
),
maxcombo = {
temp <- paste0(
"MaxCombo: FH(",
Expand Down

0 comments on commit 6de4e78

Please sign in to comment.