Skip to content

Commit 22cb59e

Browse files
fix bullet point order to match tables/figs, fix nbsp's in template text
1 parent 403695c commit 22cb59e

File tree

4 files changed

+14
-11
lines changed

4 files changed

+14
-11
lines changed

markdown/ComplexResultTemplate.Rmd

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
<!-- These are the summary bullet points. -->
55
- The {{spp_name_informal_sen}} includes {{f2}} and {{f4}}.
66

7-
- {{spp_name_informal_sen}} was the `r scales::ordinal({{xth}})` most abundant group caught in the {{year}} {{SRVY}} survey. Their total biomass was estimated to be {{species_biomass}}, which is a {{spp_percent_change}}% {{spp_incr_decr}} from {{compareyr}} (Table `r officer::run_reference(paste0("table1-","{{species_code}}"))`, Fig. `r officer::run_reference(paste0("threepanel-","{{species_code}}"))`).
8-
9-
- The largest estimated biomass for the {{spp_name_informal_low}} was in the {{nmfs_highest_biomass}} statistical area and the depth range with the largest estimated biomass was {{depth_highest_biomass}} (Table `r officer::run_reference(paste0("table2-","{{species_code}}"))`).
7+
- {{spp_name_informal_sen}} was the `r scales::ordinal({{xth}})` most abundant group caught in the {{year}} {{SRVY}} survey. Their total biomass was estimated to be {{species_biomass}}, which is a {{spp_percent_change}}% {{spp_incr_decr}} from {{compareyr}} (Fig. `r officer::run_reference(paste0("threepanel-","{{species_code}}"))`).
108

119
- The highest CPUEs for the {{spp_name_informal}} were recorded in the {{nmfs_highest_cpue[1]}} and {{nmfs_highest_cpue[2]}} statistical areas (Table `r officer::run_reference(paste0("table1-","{{species_code}}"))` and Fig. `r officer::run_reference(paste0("cpue-","{{species_code}}"))`).
1210

11+
- The largest estimated biomass for the {{spp_name_informal_low}} was in the {{nmfs_highest_biomass}} statistical area and the depth range with the largest estimated biomass was {{depth_highest_biomass}} (Table `r officer::run_reference(paste0("table2-","{{species_code}}"))`).
12+
1313
- Length compositions and size by depth are not shown for complexes; these data are available upon request.
1414

1515
`r if({{show.text}}){paste0("- ","{{sex_diff_sentence}}") }`
@@ -21,7 +21,7 @@ table3s_list[["{{ species_code }}"]] |>
2121
#table3s_list[[as.character("NRSSRS")]] |>
2222
flextable() |>
2323
flextable::theme_vanilla() |>
24-
flextable::fontsize(size = 9, part = "all") |>
24+
flextable::fontsize(size = 10, part = "all") |>
2525
flextable::fit_to_width(max_width = 8.25, unit = "in") |>
2626
flextable::align(align = "center", part = "all") |>
2727
flextable::align(j = 1, align = "left", part = "body") |>
@@ -30,6 +30,7 @@ table3s_list[["{{ species_code }}"]] |>
3030
flextable::set_header_labels(
3131
`Total haul count` = "Total \n haul count",
3232
`Hauls with positive catch` = "Hauls w/\npositive catch",
33+
`Percent positive tows` = "% \npositive \ntows",
3334
#`CPUE (kg/km2)` = "CPUE\n(kg/km2)",
3435
`Biomass (t)` = "Biomass\n(t)",
3536
`% biomass in area` = "% \n biomass \n in area"

markdown/DATA_REPORT.Rmd

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,8 @@ for (i in 1:nrow(report_species)) { # nrow(report_species)
305305
dplyr::filter(biomass_numeric == max(biomass_numeric, na.rm = TRUE)) |>
306306
dplyr::select(`Depth (m)`) |>
307307
as.character()
308-
depth_highest_biomass <- paste0(depth_highest_biomass0, "&nbsp;", "m")
308+
#depth_highest_biomass <- paste0(depth_highest_biomass0, "&nbsp;", "m")
309+
depth_highest_biomass <- gsub(pattern = " ", replacement = "&nbsp;", x = depth_highest_biomass0)
309310
#
310311
# Octopus
311312
if (species_code == 78403) { # true/false, if it's for octopus don't make length comp or length scatter figs and use a different template maybe

markdown/FishResultTemplate.Rmd

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33

44
<!-- These are the summary bullet points. -->
55

6-
- {{spp_name_informal_sen}} was the `r scales::ordinal({{xth}})` most abundant species caught in the {{year}} {{SRVY}} survey. Their total biomass was estimated to be {{species_biomass}}, which is a {{spp_percent_change}}% {{spp_incr_decr}} from {{compareyr}} (Table `r officer::run_reference(paste0("table1-","{{species_code}}"))`, Fig. `r officer::run_reference(paste0("threepanel-","{{species_code}}"))`).
7-
8-
- The largest estimated biomass for {{spp_name_informal}} was in the {{nmfs_highest_biomass}} statistical area and the depth range with the largest estimated biomass was {{depth_highest_biomass}} (Table `r officer::run_reference(paste0("table2-","{{species_code}}"))`).
6+
- {{spp_name_informal_sen}} was the `r scales::ordinal({{xth}})` most abundant species caught in the {{year}} {{SRVY}} survey. Their total biomass was estimated to be {{species_biomass}}, which is a {{spp_percent_change}}% {{spp_incr_decr}} from {{compareyr}} (Fig. `r officer::run_reference(paste0("threepanel-","{{species_code}}"))`).
97

108
- The highest {{spp_name_informal}} CPUEs were recorded in the {{nmfs_highest_cpue[1]}} and {{nmfs_highest_cpue[2]}} statistical areas (Table `r officer::run_reference(paste0("table1-","{{species_code}}"))` and Fig. `r officer::run_reference(paste0("cpue-","{{species_code}}"))`).
119

12-
- On average, the longest individuals were found in the {{region_longest}} statistical area and in a depth range of {{depth_longest}} (Figure `r officer::run_reference(paste0("lengthdepth-","{{species_code}}"))`). Historical length distributions are provided in Figure `r officer::run_reference(paste0("lengthcomp-","{{species_code}}"))`.
10+
- The largest estimated biomass for {{spp_name_informal}} was in the {{nmfs_highest_biomass}} statistical area and the depth range with the largest estimated biomass was {{depth_highest_biomass}} (Table `r officer::run_reference(paste0("table2-","{{species_code}}"))`).
11+
12+
- Historical length distributions are provided in Figure `r officer::run_reference(paste0("lengthcomp-","{{species_code}}"))`. On average, the longest individuals were found in the {{region_longest}} statistical area and in a depth range of {{depth_longest}} (Fig. `r officer::run_reference(paste0("lengthdepth-","{{species_code}}"))`).
1313

1414
<!-- `r if({{show.text}}){paste0("- ","{{sex_diff_sentence}}") }` -->
1515

markdown/InvertebrateResultTemplate.Rmd

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@
33

44
<!-- These are the summary bullet points. For invertebrates, the two bullet points about size are left out, as there are no size comps for things like giant octopus. -->
55

6-
- {{spp_name_informal_sen}} was the `r scales::ordinal({{xth}})` most abundant species caught in the {{year}} {{SRVY}} survey. The total biomass was estimated to be {{species_biomass}}, which is a {{spp_percent_change}}% {{spp_incr_decr}} from {{compareyr}} (Table `r officer::run_reference(paste0("table1-","{{species_code}}"))`, Fig. `r officer::run_reference(paste0("threepanel-","{{species_code}}"))`).
6+
- {{spp_name_informal_sen}} was the `r scales::ordinal({{xth}})` most abundant species caught in the {{year}} {{SRVY}} survey. The total biomass was estimated to be {{species_biomass}}, which is a {{spp_percent_change}}% {{spp_incr_decr}} from {{compareyr}} (Fig. `r officer::run_reference(paste0("threepanel-","{{species_code}}"))`).
7+
8+
- The highest {{spp_name_informal}} CPUEs were recorded in the {{nmfs_highest_cpue[1]}} and {{nmfs_highest_cpue[2]}} statistical areas (Table `r officer::run_reference(paste0("table1-",{{species_code}}))` and Fig. `r officer::run_reference(paste0("cpue-",{{species_code}}))`).
79

810
- The largest estimated biomass for {{spp_name_informal}} was in the {{nmfs_highest_biomass}} statistical area, and the depth range with the largest estimated biomass was {{depth_highest_biomass}} (Table `r officer::run_reference(paste0("table2-","{{species_code}}"))`).
911

10-
- The highest {{spp_name_informal}} CPUEs were recorded in the {{nmfs_highest_cpue[1]}} and {{nmfs_highest_cpue[2]}} statistical areas (Table `r officer::run_reference(paste0("table1-",{{species_code}}))` and Fig. `r officer::run_reference(paste0("cpue-",{{species_code}}))`).
1112

1213
\newpage
1314
```{r echo=FALSE,tab.cap='Summary by survey districts and depth intervals of {{year}} {{region}} trawl effort (number of trawl hauls), number of hauls containing {{spp_name_informal}}, their mean CPUE and biomass estimates, and average individual weight.', tab.id=paste0("table1-",{{species_code}}), tab.cap.style = "Table caption",tab.align="left"}

0 commit comments

Comments
 (0)