Skip to content

Commit 8b92e84

Browse files
authored
restructure sections (#321)
Part of: - insightsengineering/teal.reporter#400 Restructured sections-headers. Pleaase check out with - insightsengineering/teal.reporter#425 - insightsengineering/teal#1634
1 parent b983283 commit 8b92e84

File tree

9 files changed

+18
-27
lines changed

9 files changed

+18
-27
lines changed

R/tm_g_ae_oview.R

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -279,9 +279,8 @@ srv_g_ae_oview <- function(id,
279279
obj <- data()
280280
teal.reporter::teal_card(obj) <-
281281
c(
282-
teal.reporter::teal_card("# AE Overview"),
283282
teal.reporter::teal_card(obj),
284-
teal.reporter::teal_card("## Module's code")
283+
teal.reporter::teal_card("## Module's output(s)")
285284
)
286285
obj <- teal.code::eval_code(obj, "library(dplyr)")
287286

@@ -308,7 +307,7 @@ srv_g_ae_oview <- function(id,
308307
))
309308
)
310309

311-
teal.reporter::teal_card(q1) <- c(teal.reporter::teal_card(q1), "## Plot")
310+
teal.reporter::teal_card(q1) <- c(teal.reporter::teal_card(q1), "### Plot")
312311

313312
teal.code::eval_code(
314313
q1,

R/tm_g_ae_sub.R

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -310,9 +310,8 @@ srv_g_ae_sub <- function(id,
310310
obj <- data()
311311
teal.reporter::teal_card(obj) <-
312312
c(
313-
teal.reporter::teal_card("# AE by Subgroups"),
314313
teal.reporter::teal_card(obj),
315-
teal.reporter::teal_card("## Module's code")
314+
teal.reporter::teal_card("## Module's output(s)")
316315
)
317316

318317
ANL <- obj[[dataname]]
@@ -348,7 +347,7 @@ srv_g_ae_sub <- function(id,
348347
q1 <- teal.code::eval_code(obj, code = group_labels_call) %>%
349348
teal.code::eval_code(code = "")
350349

351-
teal.reporter::teal_card(q1) <- c(teal.reporter::teal_card(q1), "## Plot")
350+
teal.reporter::teal_card(q1) <- c(teal.reporter::teal_card(q1), "### Plot")
352351

353352
teal.code::eval_code(
354353
q1,

R/tm_g_butterfly.R

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -381,9 +381,8 @@ srv_g_butterfly <- function(id, data, dataname, label, plot_height, plot_width)
381381
obj <- data()
382382
teal.reporter::teal_card(obj) <-
383383
c(
384-
teal.reporter::teal_card("# Butterfly Plot"),
385384
teal.reporter::teal_card(obj),
386-
teal.reporter::teal_card("## Module's code")
385+
teal.reporter::teal_card("## Module's output(s)")
387386
)
388387
obj <- teal.code::eval_code(obj, "library(dplyr)")
389388

@@ -462,7 +461,7 @@ srv_g_butterfly <- function(id, data, dataname, label, plot_height, plot_width)
462461
)
463462
}
464463

465-
teal.reporter::teal_card(q1) <- c(teal.reporter::teal_card(q1), "## Plot")
464+
teal.reporter::teal_card(q1) <- c(teal.reporter::teal_card(q1), "### Plot")
466465

467466
if (!is.null(input$filter_var) || !is.null(input$facet_var) || !is.null(input$sort_by_var)) {
468467
teal.reporter::teal_card(q1) <- c(teal.reporter::teal_card(q1), "### Selected Options")

R/tm_g_events_term_id.R

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -296,9 +296,8 @@ srv_g_events_term_id <- function(id,
296296
obj <- data()
297297
teal.reporter::teal_card(obj) <-
298298
c(
299-
teal.reporter::teal_card("# Events by Term"),
300299
teal.reporter::teal_card(obj),
301-
teal.reporter::teal_card("## Module's code")
300+
teal.reporter::teal_card("## Module's output(s)")
302301
)
303302

304303
ANL <- obj[[dataname]]
@@ -334,7 +333,7 @@ srv_g_events_term_id <- function(id,
334333
msg = "Analysis data set must have at least 10 data points"
335334
)
336335

337-
teal.reporter::teal_card(q1) <- c(teal.reporter::teal_card(q1), "## Plot")
336+
teal.reporter::teal_card(q1) <- c(teal.reporter::teal_card(q1), "### Plot")
338337

339338
q2 <- teal.code::eval_code(
340339
q1,

R/tm_g_heat_bygrade.R

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -390,9 +390,8 @@ srv_g_heatmap_bygrade <- function(id,
390390
obj <- data()
391391
teal.reporter::teal_card(obj) <-
392392
c(
393-
teal.reporter::teal_card("# Heatmap by Grade"),
394393
teal.reporter::teal_card(obj),
395-
teal.reporter::teal_card("## Module's code")
394+
teal.reporter::teal_card("## Module's output(s)")
396395
)
397396
obj <- teal.code::eval_code(obj, "library(dplyr)")
398397

@@ -432,7 +431,7 @@ srv_g_heatmap_bygrade <- function(id,
432431
)
433432
}
434433

435-
teal.reporter::teal_card(qenv) <- c(teal.reporter::teal_card(qenv), "## Plot")
434+
teal.reporter::teal_card(qenv) <- c(teal.reporter::teal_card(qenv), "### Plot")
436435

437436
teal.code::eval_code(
438437
qenv,

R/tm_g_patient_profile.R

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -454,9 +454,8 @@ srv_g_patient_profile <- function(id,
454454
obj <- data()
455455
teal.reporter::teal_card(obj) <-
456456
c(
457-
teal.reporter::teal_card("# Patient Profile"),
458457
teal.reporter::teal_card(obj),
459-
teal.reporter::teal_card("## Module's code")
458+
teal.reporter::teal_card("## Module's output(s)")
460459
)
461460
obj <- teal.code::eval_code(obj, "library(dplyr)")
462461

@@ -873,7 +872,7 @@ srv_g_patient_profile <- function(id,
873872
x_limit <- q1[["x_limit"]]
874873
}
875874

876-
teal.reporter::teal_card(q1) <- c(teal.reporter::teal_card(q1), "## Plot")
875+
teal.reporter::teal_card(q1) <- c(teal.reporter::teal_card(q1), "### Plot")
877876

878877
q1 <- teal.code::eval_code(
879878
q1,

R/tm_g_spiderplot.R

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -301,9 +301,8 @@ srv_g_spider <- function(id, data, dataname, paramcd, label, plot_height, plot_w
301301
obj <- data()
302302
teal.reporter::teal_card(obj) <-
303303
c(
304-
teal.reporter::teal_card("# Spider Plot"),
305304
teal.reporter::teal_card(obj),
306-
teal.reporter::teal_card("## Module's code")
305+
teal.reporter::teal_card("## Module's output(s)")
307306
)
308307
obj <- teal.code::eval_code(obj, "library(dplyr)")
309308

@@ -384,7 +383,7 @@ srv_g_spider <- function(id, data, dataname, paramcd, label, plot_height, plot_w
384383

385384
# plot code to qenv ---
386385

387-
teal.reporter::teal_card(q1) <- c(teal.reporter::teal_card(q1), "## Plot")
386+
teal.reporter::teal_card(q1) <- c(teal.reporter::teal_card(q1), "### Plot")
388387
if (!is.null(input$paramcd) || !is.null(input$xfacet_var) || !is.null(input$yfacet_var)) {
389388
teal.reporter::teal_card(q1) <- c(teal.reporter::teal_card(q1), "### Selected Options")
390389
}

R/tm_g_swimlane.R

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -317,9 +317,8 @@ srv_g_swimlane <- function(id,
317317
obj <- data()
318318
teal.reporter::teal_card(obj) <-
319319
c(
320-
teal.reporter::teal_card("# Swimlane Plot"),
321320
teal.reporter::teal_card(obj),
322-
teal.reporter::teal_card("## Module's code")
321+
teal.reporter::teal_card("## Module's output(s)")
323322
)
324323

325324
teal::validate_inputs(iv())
@@ -502,7 +501,7 @@ srv_g_swimlane <- function(id,
502501
)
503502
}
504503

505-
teal.reporter::teal_card(q3) <- c(teal.reporter::teal_card(q3), "## Plot")
504+
teal.reporter::teal_card(q3) <- c(teal.reporter::teal_card(q3), "### Plot")
506505

507506
if (!is.null(input$sort_var)) {
508507
teal.reporter::teal_card(q3) <- c(teal.reporter::teal_card(q3), "### Selected Options")

R/tm_g_waterfall.R

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -359,9 +359,8 @@ srv_g_waterfall <- function(id,
359359
obj <- data()
360360
teal.reporter::teal_card(obj) <-
361361
c(
362-
teal.reporter::teal_card("# Waterfall Plot"),
363362
teal.reporter::teal_card(obj),
364-
teal.reporter::teal_card("## Module's code")
363+
teal.reporter::teal_card("## Module's output(s)")
365364
)
366365
obj <- teal.code::eval_code(obj, "library(dplyr)")
367366

@@ -520,7 +519,7 @@ srv_g_waterfall <- function(id,
520519
)
521520
}
522521

523-
teal.reporter::teal_card(q1) <- c(teal.reporter::teal_card(q1), "## Plot")
522+
teal.reporter::teal_card(q1) <- c(teal.reporter::teal_card(q1), "### Plot")
524523

525524
q1 <- teal.code::eval_code(
526525
q1,

0 commit comments

Comments
 (0)