Home

Awesome

sa4ss <a href='https://github.com/pfmc-assessments/sa4ss'><img src='man/figures/sa4ss.png' align="right" height="139" alt="sa4ss logo with braille 'accessible science for all'"/></a>

Accessible science for all is the motto of sa4ss and underpins the code in this R library that can be used to summarize output from Stock Synthesis in .pdf form.

<!-- badges: start -->

R-CMD-check codecov

<!-- badges: end -->

Rationale

sa4ss was created to ease some of the tedious overhead that comes with producing status updates of marine species for the Pacific Fishery Management Council. The package provides

  1. a consistent structure to ease reviewer fatigue,
  2. generic text for sections that are consistent across populations,
  3. imbedded functionality that works towards creating a tagged pdf that is readable via a screen reader and fulfills NOAA's guidance regarding 508 compliance, and
  4. an infrastructure to reduce the time needed to create a document relative to creating it from scratch.

Back to top

User community

The package is intended for use by analysts within the Northwest and Southwest Fisheries Science Centers but the developers are happy to entertain ideas regarding future development scenarios that could facilitate adding additional templates that would be useful to others.

Regardless of your affiliation, please feel free to post any issues regarding the package to the GitHub issues page and any questions regarding how to use the package to the GitHub discussion board. Tags are available to mark your issue with an appropriate category. These categories are instrumental in providing guidance to the package maintainers regarding how to respond to your issue and to other users who follow this repository. Before you create an issue, please

  1. try the example to determine if the package works for you in general;
  2. if the example doesn't work, then please try to reinstall the package before posting an issue, see the example for how to do this without needing to restart your R session.

Back to top

Example

Below is a minimal example to familiarize yourself with using sa4ss. Before you can build a document it is wise to work through the following steps:

  1. tinytex
  1. Pandoc
  1. rtools
  1. sa4ss package
  1. Create a pdf
library(sa4ss)
sa4ss::draft(authors = "Kelli F. Johnson", create_dir = TRUE)
setwd("doc")
bookdown::render_book("00a.Rmd", clean = FALSE, output_dir = getwd())
setwd("..")

Back to top

Tips

CTAN glossaries package

The glossaries package on CTAN can help organize acronyms. It works by using a master list of acronyms supplied in sa4ss and \gls{}, which will be the main function that you use in your text. Glossaries will determine if the term should be abbreviated or if the long form should be used, where it automatically will use the long form if it is the first instance. This functionality is helpful when you have code split amongst multiple files, you expect text to be moved around in the future, you want to standardize the way things are written, your document has multiple authors.

For more information please see page 16 of the glossaries for beginners guide where each function for generating text is explained. In short,

Back to top

Adding a figure to your title page

You can add a figure to your title page by including figure_title.png in the directory that stores all of your .Rmd files, which are typically called doc(s). This figure will be centered, placed below your title, and will be four inches wide. For those who do not want a figure on your title page, just do nothing. The use of an if statement only includes the figure if it is present and a default figure is not included in the package. Thanks to stack exchange for providing the code for the if statement.

Back to top

Code of Conduct

This project adheres to the National Marine Fisheries Service fish tools code of conduct. By contributing to this project, you agree to abide by its terms.

Disclaimer

This repository is a scientific product and is not official communication of the National Oceanic and Atmospheric Administration, or the United States Department of Commerce. All NOAA GitHub project code is provided on an ‘as is’ basis and the user assumes responsibility for its use. Any claims against the Department of Commerce or Department of Commerce bureaus stemming from the use of this GitHub project will be governed by all applicable Federal laws. Any reference to specific commercial products, processes, or services by service mark, trademark, manufacturer, or otherwise, does not constitute or imply their endorsement, recommendation, or favoring by the Department of Commerce. The Department of Commerce seal and logo, or the seal and logo of a DOC bureau, shall not be used in any manner to imply endorsement of any commercial product or activity by DOC or the United States Government.

Back to top

<img src="https://raw.githubusercontent.com/nmfs-general-modeling-tools/nmfspalette/main/man/figures/noaa-fisheries-rgb-2line-horizontal-small.png" height="75" alt="NOAA Fisheries">

U.S. Department of Commerce | National Oceanographic and Atmospheric Administration | NOAA Fisheries