This function creates an ESP report card from a template. If left empty, an example report will be created.

render_esp(
  out_name = "EXAMPLE-ESP.docx",
  esp_dir = getwd(),
  ...,
  esp_data = NULL
)

Arguments

out_name

The file name for the report

esp_dir

The ESP will be saved here.

...

Parameters passed to the Rmarkdown. See details.

esp_data

The data to use for automated analyses.

Value

Suggestions for parameters are:

  • num: The appendix number of the EPS

  • authors: The names of the authors, as a single character string

  • year: The year of the ESP

  • contributors: The names of the contributors, as a single character string

  • fish: The name of the fish species

  • region: The name of the stock area

  • fig_spreadsheet: The file path to the filled out figure spreadsheet (one of the template documents)

  • tab_spreadsheet: The file path to the filled out table spreadsheet (one of the template documents)

  • esp_text: The file path to the filled out text template (one of the template documents)

  • esp_type: The type of ESP to make. One of c("full", "partial", "report_card")

  • con_model_path: The path to the conceptual model. Currently only required for report card ESPs.

  • stock_image: The path to an image to use on the cover page. Shows the NOAA logo as a default.

  • bayes_path: The path to the image of Bayesian Adaptive Sampling results

Details

Additional arguments are passed as parameters to the ESP Rmarkdown report.