@@ -69,12 +69,12 @@ test_that("Forest plot 1 to many", {
6969 trans = " log2" ,
7070 xlab = " OR for CHD per SD increase in risk factor (95% confidence interval)" ,
7171 weight = " weight"
72- ), regexp = " Removed 6 rows containing missing values or values outside the scale range * " )
72+ ), regexp = " Removed 6 rows" )
7373})
7474
7575test_that(" Forest plot 1 to many test 2" , {
7676 res $ pval <- formatC(res $ pval , format = " e" , digits = 2 )
77- expect_warning(p9 <- forest_plot_1_to_many(
77+ expect_warning(p9 <- utils :: capture.output( forest_plot_1_to_many(
7878 res ,
7979 b = " b" ,
8080 se = " se" ,
@@ -94,7 +94,7 @@ test_that("Forest plot 1 to many test 2", {
9494 addcols = c(" nsnp" , " pval" ),
9595 addcol_widths = c(1.0 , 1.0 ),
9696 addcol_titles = c(" No. SNPs" , " P-val" )
97- ), regexp = " Removed 6 rows containing missing values or values outside the scale range * " )
97+ ), regexp = " Removed 6 rows" ) )
9898})
9999
100100test_that(" Forest plot 1 to many test 3 - with subcategory in by argument" , {
@@ -121,5 +121,5 @@ test_that("Forest plot 1 to many test 3 - with subcategory in by argument", {
121121 xlab = " OR for CHD per SD increase in risk factor (95% confidence interval)" ,
122122 subheading_size = 14 ,
123123 weight = " weight"
124- ), regexp = " Removed 3 rows containing missing values or values outside the scale range * " )
124+ ), regexp = " Removed 3 rows" )
125125})
0 commit comments