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

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: default.saemix.plots
> ### Title: Wrapper functions to produce certain sets of default plots
> ### Aliases: default.saemix.plots basic.gof advanced.gof covariate.fits
> ###   individual.fits
> ### Keywords: plots
> 
> ### ** Examples
> 
> 
> data(theo.saemix)
> 
> saemix.data<-saemixData(name.data=theo.saemix,header=TRUE,sep=" ",na=NA, 
+   name.group=c("Id"),name.predictors=c("Dose","Time"),
+   name.response=c("Concentration"),name.covariates=c("Weight","Sex"),
+   units=list(x="hr",y="mg/L",covariates=c("kg","-")), name.X="Time")
Using the object called theo.saemix in this R session as the data.
[1] "Weight" "Sex"   


The following SaemixData object was successfully created:

Object of class SaemixData
    longitudinal data for use with the SAEM algorithm
Dataset theo.saemix 
    Structured data: Concentration ~ Dose + Time | Id 
    X variable for graphs: Time (hr) 
    covariates: Weight (kg), Sex (-) 
      reference class for covariate Sex :  0 
> 
> model1cpt<-function(psi,id,xidep) { 
+ 	  dose<-xidep[,1]
+ 	  tim<-xidep[,2]  
+ 	  ka<-psi[id,1]
+ 	  V<-psi[id,2]
+ 	  CL<-psi[id,3]
+ 	  k<-CL/V
+ 	  ypred<-dose*ka/(V*(ka-k))*(exp(-k*tim)-exp(-ka*tim))
+ 	  return(ypred)
+ }
> 
> saemix.model<-saemixModel(model=model1cpt,
+   description="One-compartment model with first-order absorption", 
+   psi0=matrix(c(1.,20,0.5,0.1,0,-0.01),ncol=3, byrow=TRUE,
+   dimnames=list(NULL, c("ka","V","CL"))),transform.par=c(1,1,1),
+   covariate.model=matrix(c(0,1,0,0,0,0),ncol=3,byrow=TRUE),fixed.estim=c(1,1,1),
+   covariance.model=matrix(c(1,0,0,0,1,0,0,0,1),ncol=3,byrow=TRUE),
+   omega.init=matrix(c(1,0,0,0,1,0,0,0,1),ncol=3,byrow=TRUE),error.model="constant")


The following SaemixModel object was successfully created:

Nonlinear mixed-effects model
  Model function:  One-compartment model with first-order absorption
function (psi, id, xidep) 
{
    dose <- xidep[, 1]
    tim <- xidep[, 2]
    ka <- psi[id, 1]
    V <- psi[id, 2]
    CL <- psi[id, 3]
    k <- CL/V
    ypred <- dose * ka/(V * (ka - k)) * (exp(-k * tim) - exp(-ka * 
        tim))
    return(ypred)
}
  Nb of parameters: 3 
      parameter names:  ka V CL 
      distribution:
     Parameter Distribution Estimated
[1,] ka        log-normal   Estimated
[2,] V         log-normal   Estimated
[3,] CL        log-normal   Estimated
  Variance-covariance matrix:
   ka V CL
ka  1 0  0
V   0 1  0
CL  0 0  1
  Error model: constant , initial values: a.=1 
  Covariate model:
     ka V CL
[1,]  0 1  0
[2,]  0 0  0
    Initial values
              ka  V    CL
Pop.CondInit 1.0 20  0.50
Cov.CondInit 0.1  0 -0.01
> 
> # Reducing the number of iterations due to time constraints for CRAN
> saemix.options<-list(seed=632545,save=FALSE,save.graphs=FALSE,nbiter.saemix=c(100,100))
> 
> saemix.fit<-saemix(saemix.model,saemix.data,saemix.options)
Running main SAEM algorithm
[1] "Mon Feb 22 01:08:58 2021"
..
    Minimisation finished
[1] "Mon Feb 22 01:09:01 2021"
Estimating the individual parameters, please wait a few moments...
............
Error in xtfrm.data.frame(x) : cannot xtfrm data frames
Calls: saemix ... lapply -> FUN -> as.vector -> xtfrm -> xtfrm.data.frame
Execution halted