Running examples in 'lmomPi-Ex.R' failed
The error most likely occurred in:

> ### Name: cdf
> ### Title: Generic function for 'cdf...': probability distribution fitting
> ###   with L-Moments.
> ### Aliases: cdf spi.cdf cdf.spi
> 
> ### ** Examples
> 
> 
> # Sample L-moments of Ozone from the airquality data
> data(airquality)
> lmom <- samlmu(airquality$Ozone,nmom=6)
> 
> distrib <- c("exp","gam","gev","glo","gpa","gno","gum","kap",
+ "ln3","nor","pe3","wak","wei")
> 
> para_list <- pel(distrib=distrib,lmom=lmom)
> cdf_list <- cdf(para=para_list,x=airquality$Ozone)
> 
>  library(rasterList)
Loading required package: raster
Loading required package: sp
>  precff <- system.file("map/Mekrou_precipitation.grd", package="rasterList")
> 	precs <- stack(precff)
>  prec_point <- precs[143][,]
> 
>  ## month index 
>  month <- as.character(as.Date(names(prec_point),format="X%Y.%m.%d"),format="M%m")
>  prec_point[(prec_point<1) & (month=="M01")] <- 0
> 
>  distrib_prec2 <- c("gam")
>  para_vvv <- pel(x=prec_point,indices=month,distrib=distrib_prec2)
Warning in samlmu(x, nmom = nmom, sort.data = sort.data, ratios = ratios,  :
  all data values equal
>  cdf_      <- cdf(x=prec_point,indices=month,para=para_vvv)      
> 	spi_      <- spi.cdf(x=prec_point,indices=month,para=para_vvv)  
> 
>  ####  
>  ## Not run: 
> ##D  para_raster <- rasterList(precs,FUN=pel_x,indices=month,distrib=distrib_prec2)
> ##D  spi1_raster <- stack(RasterListApply(x=rasterList(precs),para=para_raster,
> ##D                 indices=list(month),FUN=spi.cdf))
> ##D 
> ##D   para_raster_spi3 <- rasterList(precs,FUN=pel_x,indices=month,distrib=distrib_prec2,
> ##D 						spi.scale=3)
> ##D   spi3_raster <- stack(RasterListApply(x=rasterList(precs),para=para_raster_spi3,
> ##D                 indices=list(month),spi.scale=3,FUN=spi.cdf))
> ## End(Not run)
> 
> 
> ## Comparison with the SPI/SPEI algorithms:  'SPEI::spi' ('SPEI' package)
> library(SPEI)
Error in library(SPEI) : there is no package called 'SPEI'
Execution halted