Skip to content

Commit 72b0f34

Browse files
authored
Merge pull request #177 from Merck/five-second-rule
Wrap > 5 sec examples in `\donttest{}`
2 parents 7f9ff0d + 8ce9e8a commit 72b0f34

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

R/sim_fixed_n.R

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@
8585
#' # Example with 2 tests: logrank and FH(0,1)
8686
#' sim_fixed_n(n_sim = 1, rho_gamma = data.frame(rho = 0, gamma = c(0, 1)))
8787
#'
88+
#' \donttest{
8889
#' # Example 3
8990
#' # Power by test
9091
#' # Only use cuts for events, events + min follow-up
@@ -116,12 +117,13 @@
116117
#'
117118
#' mean(p < .025)
118119
#'
119-
#' # Example 3
120+
#' # Example 4
120121
#' # Use two cores
121122
#' set.seed(2023)
122123
#' plan("multisession", workers = 2)
123124
#' sim_fixed_n(n_sim = 10)
124125
#' plan("sequential")
126+
#' }
125127
sim_fixed_n <- function(
126128
n_sim = 1000,
127129
sample_size = 500, # Sample size

man/sim_fixed_n.Rd

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)