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

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: snm
> ### Title: Estimation of neutral taxa percentae and dispersal rate
> ### Aliases: snm snm.boot snm.comm
> ### Keywords: Other method
> 
> ### ** Examples
> 
> data("example.data")
> comm=example.data$comm
> treat=example.data$treat
> rand.time=10 # usually use 1000 for real data.
> snmtest=snm.comm(comm = comm, treat = treat,
+                  rand = rand.time)
All match very well.
All match very well.
Loading required namespace: minpack.lm
Loading required namespace: Hmisc
Loading required namespace: stats4
All match very well.
Waiting for profiling to be done...
Warning in stats::dnorm(R, 0, sigma) : NaNs produced
Warning in stats::dnorm(R, 0, sigma) : NaNs produced
Warning in stats::dnorm(R, 0, sigma) : NaNs produced
Warning in stats::pbeta(d, N * m * p, N * m * (1 - p), lower.tail = FALSE) :
  NaNs produced
Warning in stats::pbeta(d, N * m * p, N * m * (1 - p), lower.tail = FALSE) :
  NaNs produced
Warning in stats::pbeta(d, N * m * p, N * m * (1 - p), lower.tail = FALSE) :
  NaNs produced
Warning in stats::dnorm(R, 0, sigma) : NaNs produced
Warning in stats::pbeta(d, N * m * p, N * m * (1 - p), lower.tail = FALSE) :
  NaNs produced
Warning in stats::pbeta(d, N * m * p, N * m * (1 - p), lower.tail = FALSE) :
  NaNs produced
Warning in stats::pbeta(d, N * m * p, N * m * (1 - p), lower.tail = FALSE) :
  NaNs produced
Warning in stats::pbeta(d, N * m * p, N * m * (1 - p), lower.tail = FALSE) :
  NaNs produced
Error in UseMethod("logLik") : 
  no applicable method for 'logLik' applied to an object of class "mle"
Calls: snm.comm ... <Anonymous> -> <Anonymous> -> <Anonymous> -> AIC.default -> ll
Execution halted
Examples with CPU (user + system) or elapsed time > 5s
           user system elapsed
null.norm 4.435  0.008   5.864
bNRIn.p   0.647  0.001   5.254
bNRI.cm   0.636  0.004   5.172
pdist.p   0.426  0.064   7.983