Skip to content

Commit 33af554

Browse files
Merge pull request #503 from Merck/pipe-note
Avoid native pipe check note or build warning on R >= 4.5.0
2 parents 0969b30 + 34dbf4a commit 33af554

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

R/expected_time.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ expected_time <- function(
125125
enroll_rate = enroll_rate, fail_rate = fail_rate,
126126
total_duration = res$root, ratio = ratio
127127
)
128-
return(ans |> select(-n))
128+
return(ans %>% select(-n))
129129
}
130130
}
131131

R/gs_info_ahr.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ gs_info_ahr <- function(enroll_rate = define_enroll_rate(duration = c(2, 2, 10),
123123
if (!is.null(analysis_time)) {
124124
# calculate events given the `analysis_time`
125125
avehr <- ahr(enroll_rate = enroll_rate, fail_rate = fail_rate,
126-
ratio = ratio, total_duration = analysis_time) |> select(-n)
126+
ratio = ratio, total_duration = analysis_time) %>% select(-n)
127127
# check if the above events >= targeted events
128128
for (i in seq_along(event)) {
129129
if (avehr$event[i] < event[i]) {

0 commit comments

Comments
 (0)