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

> ### Name: MDMR-package
> ### Title: Multivariate Distance Matrix Regression
> ### Aliases: MDMR-package MDMR
> 
> ### ** Examples
> 
> ################################################################
> ## Conducting MDMR on data comprised of independent observations
> ################################################################
> # Source data
> data(mdmrdata)
> 
> # Get distance matrix
> D <- dist(Y.mdmr, method = 'euclidean')
> 
> # Conduct MDMR
> mdmr.res <- mdmr(X = X.mdmr, D = D)
> summary(mdmr.res)
          Statistic Numer.DF Pseudo.R2 Analytic.p.value    
(Omnibus)    0.1602        3    0.1380          < 1e-20 ***
X1           0.0652        1    0.0562          < 1e-13 ***
X2           0.0242        1    0.0208       5.2361e-07 ***
X3           0.0751        1    0.0648          < 1e-14 ***
---
Signif. codes:  0 "***" 0.001 "**" 0.01 "*" 0.05 "." 0.1 " " 1> 
> ################################################################
> ## Conducting MDMR on data comprised of dependent observations
> ################################################################
> # Source data
> data("clustmdmrdata")
> 
> # Get distance matrix
> D <- dist(Y.clust)
> 
> # Conduct mixed-MDMR
> mixed.res <- mixed.mdmr(~ x1 + x2 + (x1 + x2 | grp),
+                         data = X.clust, D = D)
Warning in optwrap(optimizer, devfun, getStart(start, rho$pp), lower = rho$lower,  :
  convergence code -2 from nloptwrap: NLOPT_INVALID_ARGS: Invalid arguments (e.g. lower bounds are bigger than upper bounds, an unknown algorithm was specified, etcetera).
Warning in optwrap(optimizer, devfun, getStart(start, rho$pp), lower = rho$lower,  :
  convergence code -2 from nloptwrap: NLOPT_INVALID_ARGS: Invalid arguments (e.g. lower bounds are bigger than upper bounds, an unknown algorithm was specified, etcetera).
Warning in optwrap(optimizer, devfun, getStart(start, rho$pp), lower = rho$lower,  :
  convergence code -2 from nloptwrap: NLOPT_INVALID_ARGS: Invalid arguments (e.g. lower bounds are bigger than upper bounds, an unknown algorithm was specified, etcetera).
Warning in optwrap(optimizer, devfun, getStart(start, rho$pp), lower = rho$lower,  :
  convergence code -2 from nloptwrap: NLOPT_INVALID_ARGS: Invalid arguments (e.g. lower bounds are bigger than upper bounds, an unknown algorithm was specified, etcetera).
Warning in optwrap(optimizer, devfun, getStart(start, rho$pp), lower = rho$lower,  :
  convergence code -2 from nloptwrap: NLOPT_INVALID_ARGS: Invalid arguments (e.g. lower bounds are bigger than upper bounds, an unknown algorithm was specified, etcetera).
Warning in optwrap(optimizer, devfun, getStart(start, rho$pp), lower = rho$lower,  :
  convergence code -2 from nloptwrap: NLOPT_INVALID_ARGS: Invalid arguments (e.g. lower bounds are bigger than upper bounds, an unknown algorithm was specified, etcetera).
Warning in optwrap(optimizer, devfun, getStart(start, rho$pp), lower = rho$lower,  :
  convergence code -2 from nloptwrap: NLOPT_INVALID_ARGS: Invalid arguments (e.g. lower bounds are bigger than upper bounds, an unknown algorithm was specified, etcetera).
Warning in optwrap(optimizer, devfun, getStart(start, rho$pp), lower = rho$lower,  :
  convergence code -2 from nloptwrap: NLOPT_INVALID_ARGS: Invalid arguments (e.g. lower bounds are bigger than upper bounds, an unknown algorithm was specified, etcetera).
Warning in optwrap(optimizer, devfun, getStart(start, rho$pp), lower = rho$lower,  :
  convergence code -2 from nloptwrap: NLOPT_INVALID_ARGS: Invalid arguments (e.g. lower bounds are bigger than upper bounds, an unknown algorithm was specified, etcetera).
Warning in optwrap(optimizer, devfun, getStart(start, rho$pp), lower = rho$lower,  :
  convergence code -2 from nloptwrap: NLOPT_INVALID_ARGS: Invalid arguments (e.g. lower bounds are bigger than upper bounds, an unknown algorithm was specified, etcetera).
Warning in optwrap(optimizer, devfun, getStart(start, rho$pp), lower = rho$lower,  :
  convergence code -2 from nloptwrap: NLOPT_INVALID_ARGS: Invalid arguments (e.g. lower bounds are bigger than upper bounds, an unknown algorithm was specified, etcetera).
Warning in optwrap(optimizer, devfun, getStart(start, rho$pp), lower = rho$lower,  :
  convergence code -2 from nloptwrap: NLOPT_INVALID_ARGS: Invalid arguments (e.g. lower bounds are bigger than upper bounds, an unknown algorithm was specified, etcetera).
Warning in optwrap(optimizer, devfun, getStart(start, rho$pp), lower = rho$lower,  :
  convergence code -2 from nloptwrap: NLOPT_INVALID_ARGS: Invalid arguments (e.g. lower bounds are bigger than upper bounds, an unknown algorithm was specified, etcetera).
Warning in optwrap(optimizer, devfun, getStart(start, rho$pp), lower = rho$lower,  :
  convergence code -2 from nloptwrap: NLOPT_INVALID_ARGS: Invalid arguments (e.g. lower bounds are bigger than upper bounds, an unknown algorithm was specified, etcetera).
Warning in optwrap(optimizer, devfun, getStart(start, rho$pp), lower = rho$lower,  :
  convergence code -2 from nloptwrap: NLOPT_INVALID_ARGS: Invalid arguments (e.g. lower bounds are bigger than upper bounds, an unknown algorithm was specified, etcetera).
Warning in optwrap(optimizer, devfun, getStart(start, rho$pp), lower = rho$lower,  :
  convergence code -2 from nloptwrap: NLOPT_INVALID_ARGS: Invalid arguments (e.g. lower bounds are bigger than upper bounds, an unknown algorithm was specified, etcetera).
Warning in optwrap(optimizer, devfun, getStart(start, rho$pp), lower = rho$lower,  :
  convergence code -2 from nloptwrap: NLOPT_INVALID_ARGS: Invalid arguments (e.g. lower bounds are bigger than upper bounds, an unknown algorithm was specified, etcetera).
Warning in optwrap(optimizer, devfun, getStart(start, rho$pp), lower = rho$lower,  :
  convergence code -2 from nloptwrap: NLOPT_INVALID_ARGS: Invalid arguments (e.g. lower bounds are bigger than upper bounds, an unknown algorithm was specified, etcetera).
Warning in optwrap(optimizer, devfun, getStart(start, rho$pp), lower = rho$lower,  :
  convergence code -2 from nloptwrap: NLOPT_INVALID_ARGS: Invalid arguments (e.g. lower bounds are bigger than upper bounds, an unknown algorithm was specified, etcetera).
Warning in optwrap(optimizer, devfun, getStart(start, rho$pp), lower = rho$lower,  :
  convergence code -2 from nloptwrap: NLOPT_INVALID_ARGS: Invalid arguments (e.g. lower bounds are bigger than upper bounds, an unknown algorithm was specified, etcetera).
Warning in optwrap(optimizer, devfun, getStart(start, rho$pp), lower = rho$lower,  :
  convergence code -2 from nloptwrap: NLOPT_INVALID_ARGS: Invalid arguments (e.g. lower bounds are bigger than upper bounds, an unknown algorithm was specified, etcetera).
Warning in optwrap(optimizer, devfun, getStart(start, rho$pp), lower = rho$lower,  :
  convergence code -2 from nloptwrap: NLOPT_INVALID_ARGS: Invalid arguments (e.g. lower bounds are bigger than upper bounds, an unknown algorithm was specified, etcetera).
Warning in optwrap(optimizer, devfun, getStart(start, rho$pp), lower = rho$lower,  :
  convergence code -2 from nloptwrap: NLOPT_INVALID_ARGS: Invalid arguments (e.g. lower bounds are bigger than upper bounds, an unknown algorithm was specified, etcetera).
Warning in optwrap(optimizer, devfun, getStart(start, rho$pp), lower = rho$lower,  :
  convergence code -2 from nloptwrap: NLOPT_INVALID_ARGS: Invalid arguments (e.g. lower bounds are bigger than upper bounds, an unknown algorithm was specified, etcetera).
Error in CompQuadForm::davies(tilde.l[k], lambda = lambda, h = rep(df,  : 
  NA/NaN/Inf in foreign function call (arg 6)
Calls: mixed.mdmr ... unlist -> <Anonymous> -> lapply -> FUN -> <Anonymous>
Execution halted