Skip to content

Commit

Permalink
Merge pull request #271 from pbs-assess/dandev
Browse files Browse the repository at this point in the history
add short report title to FSAR YAML
  • Loading branch information
seananderson authored Dec 16, 2024
2 parents 87f0836 + 199b31b commit 6373228
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 8 deletions.
3 changes: 2 additions & 1 deletion R/fsar-word.R
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
Binary file modified inst/csas-docx/fsar-first-page.docx
Binary file not shown.
Binary file modified inst/csas-docx/fsar-last-page.docx
Binary file not shown.
Binary file modified inst/csas-docx/fsar-template.docx
Binary file not shown.
1 change: 1 addition & 0 deletions inst/rmarkdown/templates/fsar/skeleton/skeleton.Rmd
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
report_title: "[Publication Title]"
report_title_short: "[Short Publication Title]"
report_year: "2024"
release_month: "January"
report_number: "XXX"
Expand Down
4 changes: 2 additions & 2 deletions inst/rmarkdown/templates/fsar/template.yaml
Original file line number Diff line number Diff line change
@@ -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.
6 changes: 3 additions & 3 deletions man/add_resdoc_docx_frontmatter.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/add_resdoc_docx_titlepage.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6373228

Please sign in to comment.