Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions R/create_template.R
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
#'
#' Default: "sar" (a NOAA standard "Stock Assessment Report")
#'
#' Options: "sar" (Stock Assessment Report), "nemt" (Northeast Management Track), "pfmc" (Pacific Fishery Management Council), "safe" (Stock Assessment and Fishery Evaluation)
#' Options: "sar" (Stock Assessment Report), "nemt" (Northeast Management Track),
#' "pfmc" (Pacific Fishery Management Council), "safe" (Stock Assessment and
#' Fishery Evaluation)
#'
#' @param office Regional Fisheries Science Center producing the report.
#'
Expand Down Expand Up @@ -462,7 +464,9 @@ create_template <- function(

asar_folder <- system.file("templates", package = "asar")
# copy files from specific type folder
current_folder <- ifelse(rerender_skeleton, subdir, file.path(asar_folder, type))
current_folder <- ifelse(rerender_skeleton,
subdir,
file.path(asar_folder, type))
new_folder <- subdir

##### Identify files to copy ----
Expand Down
7 changes: 6 additions & 1 deletion R/create_yaml.R
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,12 @@ create_yaml <- function(
toad <- paste(author_list[[i]], sep = ",")
add_authors <- paste0(add_authors, toad) # -> add_authors
}
yaml <- paste0(yaml, add_authors)

sedar_author <- " - name: 'SEDAR'\n affiliations: \n address: '4055 Faber Place Drive, Suite 201' \n city: 'North Charleston' \n state: 'SC' \n postal-code: '29405' \n"

yaml <- ifelse(office == "SEFSC",
paste0(yaml, sedar_author),
paste0(yaml, add_authors))

# Add other parts
yaml <- paste0(
Expand Down
2 changes: 2 additions & 0 deletions inst/WORDLIST
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ SEFSC
SSC
SWA
SWFSC
SouthEast
Strikethrough
TOC
TinyTeX
Expand Down Expand Up @@ -119,6 +120,7 @@ roboto
saltatrix
sar
se
sedar
snakecase
socio
sso
Expand Down
4 changes: 3 additions & 1 deletion man/create_template.Rd

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

4 changes: 3 additions & 1 deletion man/create_title.Rd

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

4 changes: 3 additions & 1 deletion man/create_yaml.Rd

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

4 changes: 3 additions & 1 deletion man/format_quarto.Rd

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

Loading