Create string for yml header in quarto file
create_yaml(
format = "pdf",
office = NULL,
region = NULL,
species = "species",
spp_latin = NULL,
spp_image = "",
year = NULL,
bib_name = NULL,
bib_file = "asar_references.bib",
author_list = NULL,
title = "[TITLE]",
rerender_skeleton = FALSE,
prev_skeleton = NULL,
prev_format = NULL,
parameters = TRUE,
param_names = NULL,
param_values = NULL,
type = "SAR"
)Rendering format (pdf, html, or docx).
Regional Fisheries Science Center producing the report (i.e., AFSC, NEFSC, NWFSC, PIFSC, SEFSC, SWFSC).
Full name of region in which the species is evaluated (if applicable). If the region is not specified for your center or species, do not use this variable.
Full common name for target species. Split naming with a space and capitalize first letter(s). Example: "Dover sole".
Latin name for the target species. Example: "Pomatomus saltatrix".
File path to the species' image if not using the image included in the project's repository.
Year the assessment is being conducted. Default is the year in which the report is rendered.
Name of a bib file being added into the yaml. For example, "asar.bib".
File path to a .bib file used for citing references in the report
A list of strings containing pre-formatted author names
and affiliations that would be found in the format in a yaml of a quarto
file when using base R function cat().
A custom title that is an alternative to the default title (composed in asar::create_title()). Example: "Management Track Assessments Spring 2024".
Re-create the "skeleton.qmd" in your outline when changes to the main skeleton need to be made. This reproduces the yaml, output (if changed), preamble quantities, and restructures your sectioning in the skeleton if indicated. All files in your folder will remain as is.
Vector of strings containing all the lines of the previous skeleton file. File is read in using the function readLines from base R.
The format that the previous skeleton was directed to render to. Parameter is inherited from create_template.
TRUE/FALSE; For parameterization of the script. Default is true.
List of parameter names that will be called in the document. Parameters automatically included: office, region, species (each of which are listed as individual parameters for this function, above).
List of values associated with the order of parameter names. Parameters automatically included: office, region, species (each of which are listed as individual parameters for this function, above).
Type of report to build. Default is SAR (NOAA Fisheries Stock Assessment Report).
Create a string indicating the important formatting pieces for a quarto file for a stock assessment report.
if (FALSE) { # \dontrun{
create_yaml(
rerender_skeleton = FALSE,
prev_skeleton = NULL,
title = "My title",
author_list = " - name: 'Patrick Star'\n affiliations:\n - name: 'NOAA Fisheries Southeast Fisheries Science Center'\n address: '75 Virginia Beach Drive'\n city: 'Miami'\n state: 'FL'\n postal-code: '33149'\n",
author = c("Patrick Star" = "SEFSC"),
office = "SEFSC",
add_author = NULL,
spp_image = NULL,
species = "",
spp_latin = NULL,
region = NULL,
format = "pdf",
parameters = TRUE,
param_names = NULL,
param_values = NULL,
bib_file = "path/asar_references.bib",
bib_name = "asar_references.bib",
year = 2025
)
} # }