diff --git a/R/fsar-word.R b/R/fsar-word.R index 4ff0843..1571e8e 100644 --- a/R/fsar-word.R +++ b/R/fsar-word.R @@ -129,7 +129,8 @@ render_sar <- function(...) { doc <- officer::headers_replace_text_at_bkm(doc, "region_name", x$region) doc <- officer::headers_replace_text_at_bkm(doc, "region_name_rest", x$region) # non-first page - doc <- officer::headers_replace_text_at_bkm(doc, "report_name_rest", x$report_title) # non-first page + doc <- officer::headers_replace_text_at_bkm(doc, "report_name_rest", x$report_title_short) # non-first page + doc <- officer::headers_replace_text_at_bkm(doc, "report_year", x$report_year) doc <- officer::headers_replace_text_at_bkm(doc, "report_number", x$report_number) diff --git a/inst/csas-docx/fsar-first-page.docx b/inst/csas-docx/fsar-first-page.docx index 8db6f5a..e36ab3e 100644 Binary files a/inst/csas-docx/fsar-first-page.docx and b/inst/csas-docx/fsar-first-page.docx differ diff --git a/inst/csas-docx/fsar-template.docx b/inst/csas-docx/fsar-template.docx index 3f2be7b..d050fff 100644 Binary files a/inst/csas-docx/fsar-template.docx and b/inst/csas-docx/fsar-template.docx differ diff --git a/inst/rmarkdown/templates/fsar/skeleton/skeleton.Rmd b/inst/rmarkdown/templates/fsar/skeleton/skeleton.Rmd index fdf963c..31470a5 100644 --- a/inst/rmarkdown/templates/fsar/skeleton/skeleton.Rmd +++ b/inst/rmarkdown/templates/fsar/skeleton/skeleton.Rmd @@ -1,5 +1,6 @@ --- report_title: "[Publication Title]" +report_title_short: "[Short Publication Title]" report_year: "2024" release_month: "January" report_number: "XXX" diff --git a/inst/rmarkdown/templates/fsar/template.yaml b/inst/rmarkdown/templates/fsar/template.yaml index 5726b3f..0080dc9 100644 --- a/inst/rmarkdown/templates/fsar/template.yaml +++ b/inst/rmarkdown/templates/fsar/template.yaml @@ -1,4 +1,4 @@ name: FSAR description: > - Template for creating a DFO FSAR reports using R Markdown using the R - bookdown package. + Template for creating a DFO FSAR or FSRR reports using R Markdown + using the R bookdown package.