fishR-Core-Team / FSA

FSA (Fisheries Stock Assessment) package provides R functions to conduct typical introductory fisheries analyses.
https://fishr-core-team.github.io/FSA/
GNU General Public License v2.0
66 stars 22 forks source link

nlsTracePlot failure example #31

Closed droglenc closed 7 years ago

droglenc commented 7 years ago

Add an example where nls() fails to converge and the user needs to use try() and capture.output() along with trace=TRUE to capture an object that can be used in nlsTracePlot(). This methodology is described in the documentation but it would be clearer if the documentation had an example. A bad stock-recruitment data set would be the easiest to use for the illustration.