shinyypr is an R package that provides a user interface to the ypr R package. ypr implements equilibrium-based yield per recruit methods for estimating the optimal yield for a fish population.
To install the latest release from CRAN
To install the developmental version from GitHub
install.packages("remotes")
# remotes::install_github("poissonconsulting/shinyypr")
install.packages("shinyypr", repos = c('https://poissonconsulting.r-universe.dev', 'https://cloud.r-project.org'))
### run app with default parameter settings
shinyypr::run_ypr_app()
### provide parameter settings by passing a ypr_population object to the run_ypr_app function
adams <- ypr::adams_bt_03
adams_adjusted <- ypr::ypr_population_update(adams, "Rk" = 5, "Linf" = 140)
shinyypr::run_ypr_app(adams_adjusted)
shinyypr also ships with an RStudio addin.
For more information see the ypr R package Get
Started
vignette.
Please report any issues.
Pull requests are always welcome.
Please note that the shinyypr project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.