Running examples in ‘FlexParamCurve-Ex.R’ failed
The error most likely occurred in:

> ### Name: SSposnegRichards
> ### Title: Self-Starting Positive-Negative Richards Model (double-Richards)
> ### Aliases: SSposnegRichards
> 
> ### ** Examples
> 
> 
>  set.seed(3) #for compatability issues
> 
>  require(graphics)
> 
>     # retrieve mean estimates of 8 parameters using getInitial
> 
>     # and posneg.data object
> 
>     modpar(posneg.data$age, posneg.data$mass,verbose=TRUE, pn.options = "myoptions", width.bounds=2)
[1] modpar will attempt to parameterize your data using the following sequential procedures:
[1]   (1) Extract parameter estimates for 8-parameter double-Richards curve in nls
[1]   (2) Use getInitial to retrieve parameter estimates for 8-parameter double-Richards curve
[1]   (3) Extract parameter estimates for 4-parameter Richards curve in 
[1]   (4) Use getInitial to retrieve parameter estimates for 4-parameter Richards curve
[1] if any approaches are successful, modpar will return these and terminate at that stage
[1]  
[1] Estimating parameter bounds....
[1] "Warning: simultaneous optimization of pre- and post- peak curves failed, using separately fitted parameters"
[1] "Values from SSposnegRichards:"
         Asym             K          Infl             M         RAsym 
 4.443135e+03  6.471251e-02  2.336873e+01  3.802140e-01 -1.126358e+03 
           Rk            Ri            RM 
 3.520421e-01  1.040000e+02  7.983006e-01 
[1] (1) Status of 8-parameter double-Richards curve fit in nls:
[1] "Warning: simultaneous optimization of pre- and post- peak curves failed, using separately fitted parameters"
[1] "Values from SSposnegRichards:"
         Asym             K          Infl             M         RAsym 
 4.443135e+03  6.471251e-02  2.336873e+01  3.802140e-01 -1.126358e+03 
           Rk            Ri            RM 
 1.056126e+00  1.040000e+02  7.983006e-01 
[1] ....8-parameter nls fit successful
$Asym
[1] 4443.135

$K
[1] 0.06471251

$Infl
[1] 23.36873

$M
[1] 0.380214

$RAsym
[1] -1126.358

$Rk
[1] 0.3520421

$Ri
[1] 104

$RM
[1] 0.7983006

> 
>     getInitial(mass ~ SSposnegRichards(age, Asym, K, Infl, M, 
+ 
+         RAsym, Rk, Ri, RM, modno = 1, pn.options = "myoptions"), data = posneg.data)
[1] "Warning: simultaneous optimization of pre- and post- peak curves failed, using separately fitted parameters"
[1] "Values from SSposnegRichards:"
         Asym             K          Infl             M         RAsym 
 4.443135e+03  6.471251e-02  2.336873e+01  3.802140e-01 -1.126358e+03 
           Rk            Ri            RM 
 1.056126e+00  1.040000e+02  7.983006e-01 
      Asym          K     Infl        M     RAsym       Rk  Ri        RM
1 4443.135 0.06471251 23.36873 0.380214 -1126.358 1.056126 104 0.7983006
> 
> 
> 
>     # retrieve mean estimates and produce plot to illustrate fit for 
> 
>     # curve with M, Ri and Rk fixed
> 
>     pars <- coef(nls(mass ~ SSposnegRichards(age, 
+ 
+         Asym = Asym, K = K, Infl = Infl, RAsym = RAsym, 
+ 
+         	RM = RM, modno = 24, pn.options = "myoptions"), data = posneg.data,
+ 
+         	control=list(tolerance = 10)))
[1] "Warning: simultaneous optimization of pre- and post- peak curves failed, using separately fitted parameters"
[1] "Values from SSposnegRichards:"
         Asym             K          Infl         RAsym            RM 
 4.443135e+03  6.471251e-02  2.336873e+01 -1.125921e+03  7.977930e-01 
Error in (function (maxiter = 50, tol = 1e-05, minFactor = 1/1024, printEval = FALSE,  : 
  unused argument (tolerance = 10)
Calls: coef -> nls -> do.call
Execution halted