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

> ### Name: Anal.MultiRR
> ### Title: Fits a multilevel random regression to n simulated data frames.
> ### Aliases: Anal.MultiRR
> ### Keywords: simulation multi-level random regression
> 
> ### ** Examples
> 
> #Example 1: Balanced sampling design.
> #Define sample sizes.
> n.ind <-c(40, 50) ##Numbers of individuals to simulate.
> SeriesPerInd <- c(4, 5) ##Number of series per individual to simulate.
> ObsPerLevel <- 2 ##Number of observations per level in the environmental gradient.
>  
> #Number of simulated data sets, use at least 10.
> n.sim=3
> 
> #Define the environmetal gradient.
> EnvGradient <- c(-0.5, 0.5)
>  
> #Define the population level parameters.
> PopInt <- 0 ##Population level intercept.
> PopSlope <- -0.5 ##Population level slope.
>  
> #Define individual level parameters
> VCVInd <-matrix(c(0.3, 0.15, 0.15, 0.3),2,2) ##Creates a variance-covariance matrix.
>  
> #Define series level parameters
> VCVSeries <-matrix(c(0.3, 0.15, 0.15, 0.3),2,2) ##Creates a variance-covariance matrix.
>  
> #Define the residual variance.
> ResVar <- 0.4
>  
> #Simulate the data sets.
> sim.data <- Sim.MultiRR(n.ind=n.ind, SeriesPerInd=SeriesPerInd, 
+ ObsPerLevel=ObsPerLevel, EnvGradient=EnvGradient, PopInt=PopInt, PopSlope=PopSlope, 
+ VCVInd=VCVInd, VCVSeries=VCVSeries, ResVar=ResVar, n.sim=3)
>  
> #Analyze the simulated data sets. This may take a while.
> ressim <- Anal.MultiRR(sim.data)

 *** caught segfault ***
address a, cause 'memory not mapped'

Traceback:
 1: diff(X@p)
 2: diff(X@p)
 3: KhatriRao(sm, t(mm))
 4: FUN(X[[i]], ...)
 5: lapply(bars, mkBlist, fr, drop.unused.levels)
 6: mkReTrms(findbars(RHSForm(formula)), fr)
 7: lme4::lFormula(formula = y ~ x + (x | Series) + (1 | Ind), data = data,     REML = TRUE, control = list(optimizer = "bobyqa", restart_edge = TRUE,         boundary.tol = 1e-05, calc.derivs = TRUE, use.last.params = FALSE,         checkControl = list(check.nobs.vs.rankZ = "ignore", check.nobs.vs.nlev = "stop",             check.nlev.gtreq.5 = "ignore", check.nlev.gtr.1 = "stop",             check.nobs.vs.nRE = "stop", check.rankX = "message+drop.cols",             check.scaleX = "warning", check.formula.LHS = "stop"),         checkConv = list(check.conv.grad = list(action = "warning",             tol = 0.002, relTol = NULL), check.conv.singular = list(            action = "ignore", tol = 1e-04), check.conv.hess = list(            action = "warning", tol = 1e-06)), optCtrl = list()))
 8: eval(expr, envir, enclos)
 9: eval(mc, parent.frame(1L))
10: lmer(y ~ x + (x | Series) + (1 | Ind), data = data, REML = TRUE)
11: FUN(X[[i]], ...)
12: lapply(w, lmerAll)
13: Anal.MultiRR(sim.data)
An irrecoverable exception occurred. R is aborting now ...