Update report parameters and improve translation logging; modify field size variable name

This commit is contained in:
Timon 2026-03-10 14:11:13 +01:00
parent 8924fd1273
commit df2fb8bf7f
2 changed files with 6 additions and 8 deletions

View file

@ -13,8 +13,7 @@ params:
x_axis_unit: "days"
output:
word_document:
reference_docx: !expr file.path("word-styles-reference-var1.docx")
toc: no
reference_docx: !expr params$ref toc: no
editor_options:
chunk_output_type: console
---
@ -472,9 +471,8 @@ tryCatch({
translations <- do.call(rbind, translation_list)
if (!is.null(translations)) {
safe_log("Translations file succesfully loaded")
} else {
safe_log("Failed to load translations", "ERROR")
safe_log("Translations file successfully loaded")
} else { safe_log("Failed to load translations", "ERROR")
translations <- NULL
}
}, error = function(e) {
@ -1326,7 +1324,7 @@ tryCatch({
})
```
cat("\\newpage\n\n")
\newpage
`r tr_key("detailed_field")`
@ -1424,7 +1422,7 @@ if (!exists("field_details_table") || is.null(field_details_table) || nrow(field
field_details_clean <- field_details_clean %>%
select(
field = Field_id,
field_size = field_size_acres,
field_size = field_size_area,
mean_ci = Mean_CI,
yield_forecast = TCH_Forecasted,
gap_score = Gap_Score,

Binary file not shown.