@@ -32,7 +32,9 @@ as_gt <- function(x, ...) {
32
32
# '
33
33
# ' @export
34
34
# '
35
- # ' @examplesIf interactive() && !identical(Sys.getenv("IN_PKGDOWN"), "true")
35
+ # ' @examplesIf !identical(Sys.getenv("IN_PKGDOWN"), "true")
36
+ # ' # Fixed design examples ----
37
+ # '
36
38
# ' library(dplyr)
37
39
# '
38
40
# ' # Enrollment rate
@@ -154,7 +156,10 @@ fd_footnote <- function(x, method) {
154
156
# '
155
157
# ' @export
156
158
# '
157
- # ' @examplesIf interactive() && !identical(Sys.getenv("IN_PKGDOWN"), "true")
159
+ # ' @examplesIf !identical(Sys.getenv("IN_PKGDOWN"), "true")
160
+ # ' \donttest{
161
+ # ' # Group sequential design examples ---
162
+ # '
158
163
# ' library(dplyr)
159
164
# ' # Example 1 ----
160
165
# ' # The default output
@@ -163,15 +168,15 @@ fd_footnote <- function(x, method) {
163
168
# ' summary() %>%
164
169
# ' as_gt()
165
170
# '
166
- # ' gs_power_ahr() %>%
171
+ # ' gs_power_ahr(lpar = list(sf = gsDesign::sfLDOF, total_spend = 0.1) ) %>%
167
172
# ' summary() %>%
168
173
# ' as_gt()
169
174
# '
170
175
# ' gs_design_wlr() %>%
171
176
# ' summary() %>%
172
177
# ' as_gt()
173
178
# '
174
- # ' gs_power_wlr() %>%
179
+ # ' gs_power_wlr(lpar = list(sf = gsDesign::sfLDOF, total_spend = 0.1) ) %>%
175
180
# ' summary() %>%
176
181
# ' as_gt()
177
182
# '
@@ -190,7 +195,7 @@ fd_footnote <- function(x, method) {
190
195
# ' # Example 2 ----
191
196
# ' # Usage of title = ..., subtitle = ...
192
197
# ' # to edit the title/subtitle
193
- # ' gs_power_wlr() %>%
198
+ # ' gs_power_wlr(lpar = list(sf = gsDesign::sfLDOF, total_spend = 0.1) ) %>%
194
199
# ' summary() %>%
195
200
# ' as_gt(
196
201
# ' title = "Bound Summary",
@@ -200,7 +205,7 @@ fd_footnote <- function(x, method) {
200
205
# ' # Example 3 ----
201
206
# ' # Usage of colname_spanner = ..., colname_spannersub = ...
202
207
# ' # to edit the spanner and its sub-spanner
203
- # ' gs_power_wlr() %>%
208
+ # ' gs_power_wlr(lpar = list(sf = gsDesign::sfLDOF, total_spend = 0.1) ) %>%
204
209
# ' summary() %>%
205
210
# ' as_gt(
206
211
# ' colname_spanner = "Cumulative probability to cross boundaries",
@@ -210,7 +215,7 @@ fd_footnote <- function(x, method) {
210
215
# ' # Example 4 ----
211
216
# ' # Usage of footnote = ...
212
217
# ' # to edit the footnote
213
- # ' gs_power_wlr() %>%
218
+ # ' gs_power_wlr(lpar = list(sf = gsDesign::sfLDOF, total_spend = 0.1) ) %>%
214
219
# ' summary() %>%
215
220
# ' as_gt(
216
221
# ' footnote = list(
@@ -228,17 +233,17 @@ fd_footnote <- function(x, method) {
228
233
# ' # Example 5 ----
229
234
# ' # Usage of display_bound = ...
230
235
# ' # to either show efficacy bound or futility bound, or both(default)
231
- # ' gs_power_wlr() %>%
236
+ # ' gs_power_wlr(lpar = list(sf = gsDesign::sfLDOF, total_spend = 0.1) ) %>%
232
237
# ' summary() %>%
233
238
# ' as_gt(display_bound = "Efficacy")
234
239
# '
235
240
# ' # Example 6 ----
236
241
# ' # Usage of display_columns = ...
237
242
# ' # to select the columns to display in the summary table
238
- # ' gs_power_wlr() %>%
243
+ # ' gs_power_wlr(lpar = list(sf = gsDesign::sfLDOF, total_spend = 0.1) ) %>%
239
244
# ' summary() %>%
240
245
# ' as_gt(display_columns = c("Analysis", "Bound", "Nominal p", "Z", "Probability"))
241
- # '
246
+ # ' }
242
247
as_gt.gs_design <- function (
243
248
x ,
244
249
title = NULL ,
0 commit comments