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

> ### Name: renewal
> ### Title: Function _renewal_
> ### Aliases: renewal
> ### Keywords: utilities
> 
> ### ** Examples
> 
> require(ltable)
> data(tdata, package="ltable")
> res1<-MCLogLin(Counts~smoker +contraceptive +tromb +
+ contraceptive*tromb, data=tdata, draw=5000, burnin=500)

Call:
MCLogLin(formula = Counts ~ smoker + contraceptive + tromb + 
    contraceptive * tromb, data = tdata, draw = 5000, burnin = 500)


Coefficients:
                                  Estimate  Std.Error  |z-score|   Pr(>|z|)
(Intercept)                      4.415e+00  3.907e-01  1.130e+01  1.325e-29 
smokerYes                       -9.726e-01  3.916e-01  2.483e+00  1.302e-02 
contraceptiveYes                -2.407e+00  5.858e-01  4.108e+00  3.988e-05 
trombTrombol                    -1.192e+00  5.153e-01  2.313e+00  2.072e-02 
contraceptiveYes:trombTrombol    2.450e+00  7.980e-01  3.070e+00  2.138e-03 
phi                              4.726e+00  7.393e-01  6.392e+00  1.634e-10 


Model fit:
MCMC fitting
Samplers : Gibbs for expected counts, Slice for regr. coeff. and inv.var.par. phi
Language: R
Jacobian reciprocal condition number =  0.05062997 
chisq/n =  0.02153245 
Deviance=  0.01510963 
NULL Deviance=  7.686497 
Log.likelihood=  -27.66856 
AIC(1) =  65.33713 
AIC(n) =  8.167141 
BIC =  65.73433 


Residuals report (Y denotes Counts):
Row Ovserved Y Predicted Y Raw Residual Pearson Residual Anscombe Residual
 1         14      12.425        1.575            0.235            0.888 
 2          2       2.401       -0.401           -0.211           -0.534 
 3          7       7.433       -0.433           -0.099           -0.331 
 4         22      22.810       -0.810           -0.070           -0.328 
 5         12      13.588       -1.588           -0.219           -0.881 
 6          8       7.600        0.400            0.090            0.298 
 7         25      24.510        0.490            0.040            0.188 
 8         84      83.083        0.917            0.023            0.163 


> renewal(res1[,1], Astate=5)
Error: nlopt_add_inequality_mconstraint returned NLOPT_INVALID_ARGS.
Error: nlopt_add_inequality_mconstraint returned NLOPT_INVALID_ARGS.
Error: nlopt_add_inequality_mconstraint returned NLOPT_INVALID_ARGS.
Error: nlopt_add_inequality_mconstraint returned NLOPT_INVALID_ARGS.
Error: nlopt_add_inequality_mconstraint returned NLOPT_INVALID_ARGS.
Error: nlopt_add_inequality_mconstraint returned NLOPT_INVALID_ARGS.
Error in astart:lengthcprob : NA/NaN argument
Calls: renewal -> which
Execution halted