Update report parameters and improve translation logging; modify field size variable name
This commit is contained in:
parent
8924fd1273
commit
df2fb8bf7f
|
|
@ -12,9 +12,8 @@ params:
|
||||||
facet_by_season: FALSE
|
facet_by_season: FALSE
|
||||||
x_axis_unit: "days"
|
x_axis_unit: "days"
|
||||||
output:
|
output:
|
||||||
word_document:
|
word_document:
|
||||||
reference_docx: !expr file.path("word-styles-reference-var1.docx")
|
reference_docx: !expr params$ref toc: no
|
||||||
toc: no
|
|
||||||
editor_options:
|
editor_options:
|
||||||
chunk_output_type: console
|
chunk_output_type: console
|
||||||
---
|
---
|
||||||
|
|
@ -472,9 +471,8 @@ tryCatch({
|
||||||
translations <- do.call(rbind, translation_list)
|
translations <- do.call(rbind, translation_list)
|
||||||
|
|
||||||
if (!is.null(translations)) {
|
if (!is.null(translations)) {
|
||||||
safe_log("Translations file succesfully loaded")
|
safe_log("Translations file successfully loaded")
|
||||||
} else {
|
} else { safe_log("Failed to load translations", "ERROR")
|
||||||
safe_log("Failed to load translations", "ERROR")
|
|
||||||
translations <- NULL
|
translations <- NULL
|
||||||
}
|
}
|
||||||
}, error = function(e) {
|
}, error = function(e) {
|
||||||
|
|
@ -1326,7 +1324,7 @@ tryCatch({
|
||||||
})
|
})
|
||||||
```
|
```
|
||||||
|
|
||||||
cat("\\newpage\n\n")
|
\newpage
|
||||||
|
|
||||||
`r tr_key("detailed_field")`
|
`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 %>%
|
field_details_clean <- field_details_clean %>%
|
||||||
select(
|
select(
|
||||||
field = Field_id,
|
field = Field_id,
|
||||||
field_size = field_size_acres,
|
field_size = field_size_area,
|
||||||
mean_ci = Mean_CI,
|
mean_ci = Mean_CI,
|
||||||
yield_forecast = TCH_Forecasted,
|
yield_forecast = TCH_Forecasted,
|
||||||
gap_score = Gap_Score,
|
gap_score = Gap_Score,
|
||||||
|
|
|
||||||
Binary file not shown.
Loading…
Reference in a new issue