⚠️There's a newer version (1.44.0) of this package. Take me there.

r4ss

R code for Stock Synthesis

Stock Synthesis is a fisheries stock assessment model written in ADMB by Dr. Rick Methot at the NOAA Northwest Fisheries Science Center. The R code in the r4ss package is based on the original work of Dr. Ian Stewart begun around 2005 and released as an open source R package on CRAN in 2009. The package has benefited from contributions, suggestions, and bug reports from many collaborators and users.

Code available on this website comes with no warranty or guarantee of accuracy. It merely represents an ongoing attempt to integrate output plotting, statistics and diagnostics. It is absolutely necessary that prior to use with a new application, the user checks the output manually to verify that there are no plotting or statistical bugs which could incorrectly represent the output files being analyzed.

Installation

The latest r4ss version on CRAN can be installed using a command like

install.packages("r4ss")

To get notifications about r4ss, you can watch this GitHub project and/or join the r4ss email list: https://groups.google.com/forum/#!forum/r4ss

Additional information about r4ss at the old Google Code page, https://code.google.com/p/r4ss/, will be migrated over to GitHub in the future.

More frequent enhancements and bug fixes are posted to this GitHub project. The latest version of r4ss can be installed directly from Github at any time via the devtools package in R with the following commands:

install.packages("devtools")
devtools::install_github("r4ss/r4ss")

Note: devtools will give this message: "WARNING: Rtools is required to build R packages, but is not currently installed." However, Rtools is NOT required for installing r4ss via devtools, so ignore the warning.

Once you have installed the r4ss package, it can be loaded in the regular manner:

library(r4ss)

Changes

See NEWS.md for log of changes, starting with v1.24.0.

On January 15th, 2015 and included in CRAN submission of v1.24.0, a variety of changes that were in a branch on this GitHub site have now been merged into the main code. If anything doesn't work for you, you can install an earlier version from GitHub using the devtools command:

devtools::install_github("r4ss/r4ss", ref="v1.22.1")

Changes include

  • new growth plots that facilitate comparison of mean growth to variability in growth and mean growth with maturity
  • new composition plots that show females, males, and unsexed fish in the same plot
  • automatic generation of data-weighting plots contributed by Chris Francis
  • a variety of other minor refinements

Some of these things surely won't work right for any particular model configuration. If so, please email Ian Taylor or post an "issue" on this GitHub site at https://github.com/r4ss/r4ss/issues

Copy Link

Version

Down Chevron

Install

install.packages('r4ss')

Monthly Downloads

556

Version

1.24.0

License

GPL-3

Maintainer

Last Published

December 23rd, 2015

Functions in r4ss (1.24.0)