Skip to content

Commit

Permalink
don't nest pipe
Browse files Browse the repository at this point in the history
  • Loading branch information
IndrajeetPatil committed Dec 4, 2023
1 parent d40b42a commit 4af37bb
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions tests/testthat/test-ggcoefstats.R
Original file line number Diff line number Diff line change
Expand Up @@ -168,22 +168,20 @@ test_that(
caption_expr <- suppressWarnings(meta_analysis(df_meta, type = "bayes"))

set.seed(123)
ggcoef_subtitle <- suppressWarnings(ggcoefstats(
ggcoef_subtitle <- extract_subtitle(suppressWarnings(ggcoefstats(
df_meta,
meta.analytic.effect = TRUE,
bf.message = FALSE,
meta.type = "p"
) %>%
extract_subtitle())
)))

set.seed(123)
ggcoef_caption <- suppressWarnings(ggcoefstats(
ggcoef_caption <- extract_caption(suppressWarnings(ggcoefstats(
df_meta,
meta.analytic.effect = TRUE,
bf.message = TRUE,
meta.type = "p"
) %>%
extract_caption())
)))

expect_identical(subtitle_expr$expression[[1L]], ggcoef_subtitle)
expect_identical(caption_expr$expression[[1L]], ggcoef_caption)
Expand Down

0 comments on commit 4af37bb

Please sign in to comment.