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

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: cvmgof
> ### Title: cvmgof
> ### Aliases: cvmgof-package cvmgof
> 
> ### ** Examples
> 
> 
> set.seed(1)
> # The following example tests are computed from only 25 data points
> # The seed is fixed to avoid NA in estimates
> 
> require(lattice) # Only for plotting conditional CDF
Loading required package: lattice
Error: package or namespace load failed for ‘lattice’ in dyn.load(file, DLLpath = DLLpath, ...):
 unable to load shared object '/home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/lattice/libs/lattice.so':
  /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/lattice/libs/lattice.so: failed to map segment from shared object
> 
> # Data simulation
> n = 25 # Dataset size
> data.X = runif(n,min=0,max=5) # X
> data.Y = 0.2*data.X^2-data.X+2+rnorm(n,mean=0,sd=0.3) # Y
> 
> plot(data.X,data.Y,xlab='X',ylab='Y',pch='+')
> 
> ########################################################################
> 
> # Estimation of the link function
> 
> bandwidth = 0.75 # Here, the bandwidth is arbitrarily fixed
> 
> xgrid = seq(0,5,by=0.1)
> ygrid_df = df.linkfunction.estim(xgrid,data.X,data.Y,bandwidth)
> ygrid_acgm = acgm.linkfunction.estim(xgrid,data.X,data.Y,bandwidth)
> ygrid_vkgmss = vkgmss.linkfunction.estim(xgrid,data.X,data.Y,bandwidth)
> 
> plot(xgrid,ygrid_df,type='l',col='blue',lty=1,lwd=2,xlab='X',ylab='Y',ylim=c(0.25,2.5))
> lines(xgrid,ygrid_acgm,type='l',col='red',lty=2,lwd=2)
> lines(xgrid,ygrid_vkgmss,type='l',col='dark green',lty=3,lwd=2)
> lines(xgrid,0.2*xgrid^2-xgrid+2,lwd=0.5,col='gray')
> # Ducharme and Ferrigno: blue
> # Alcala et al.: red
> # Van Keilegom et al.: dark green
> # true link function: gray
> 
> # Estimation of the conditional CDF (only Ducharme and Ferrigno estimator)
> xgrid = seq(0.5,4.5,by=0.1)
> ygrid = seq(-1,3,by=0.1)
> cdf_df = df.cdf.estim(xgrid,ygrid,data.X,data.Y,bandwidth)
> 
> wireframe(cdf_df, drape=TRUE,
+     col.regions=rainbow(100),
+     zlab='CDF(y|x)',
+     xlab='x',ylab='y',zlim=c(0,1.01))
Error in wireframe(cdf_df, drape = TRUE, col.regions = rainbow(100), zlab = "CDF(y|x)",  : 
  could not find function "wireframe"
Execution halted