From 86460aa1890fb268aadc61af076bc886b255e6a3 Mon Sep 17 00:00:00 2001 From: Timon Date: Mon, 2 Feb 2026 15:37:57 +0100 Subject: [PATCH] table width to page instead of content --- r_app/90_CI_report_with_kpis_simple.Rmd | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/r_app/90_CI_report_with_kpis_simple.Rmd b/r_app/90_CI_report_with_kpis_simple.Rmd index 0b6bdbc..8e92347 100644 --- a/r_app/90_CI_report_with_kpis_simple.Rmd +++ b/r_app/90_CI_report_with_kpis_simple.Rmd @@ -969,9 +969,13 @@ field_details_clean <- field_details_table %>% # Display the cleaned field table with flextable +# Set column widths to fit page (approximately 6.5 inches for 1-inch margins) +col_widths <- c(1.2, 0.9, 1.0, 1.0, 0.8, 0.9, 0.8, 0.7, 0.6) # inches for each column + ft <- flextable(field_details_clean) %>% set_caption("Detailed Field Performance Summary") %>% - autofit() + width(width = col_widths) %>% + autofit(add_w = 0, add_h = 0) ft ```