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

> ### Name: maximin
> ### Title: Space-filling design under the criterion of maximin distance
> ### Aliases: maximin maximin.cand
> ### Keywords: space-filling design computer experiment maximin
> 
> ### ** Examples
> 
>    
>  ## Not run: 
> ##D    ## maximin.cand
> ##D    # a generic function to expand grids at higher dimension
> ##D    expand.grids <- function(x,d) expand.grid(replicate(d, x, simplify=FALSE))
> ##D    
> ##D    # generate the design
> ##D    library(lhs)
> ##D    n <- 100
> ##D    p <- 2
> ##D    Xorig <- randomLHS(10, p)
> ##D    x1 <- seq(0, 1, length.out=n)
> ##D    Xcand <- expand.grids(x1, p)
> ##D    names(Xcand) <- paste0("x", 1:2)
> ##D    T <- nrow(Xcand)
> ##D    Xsparse <- maximin.cand(n=n, Xcand=Xcand, Tmax=T, Xorig=Xorig, 
> ##D                            init=NULL, verb=FALSE, tempfile=NULL)
> ##D    
> ##D    maxmd <- as.numeric(format(round(max(na.omit(Xsparse$mis)), 5), nsmall=5))
> ##D    
> ##D    # visualization
> ##D    par(mfrow=c(1, 2))
> ##D    X <- Xcand[Xsparse$inds,]
> ##D    plot(X$x1, X$x2, xlab=expression(x[1]), ylab=expression(x[2]), 
> ##D         xlim=c(0, 1), ylim=c(0, 1), 
> ##D         main=paste0("n=", n, "_p=", p, "_maximin=", maxmd))
> ##D    points(Xorig, col=2, pch=20)
> ##D    abline(h=c(0, 1), v=c(0, 1), lty=2, col=2)
> ##D    if(!is.null(Xorig))
> ##D    {
> ##D      legend("topright", "Xorig", xpd=TRUE, horiz=TRUE, 
> ##D             inset=c(-0.03, -0.05), pch=20, col=2, bty="n")
> ##D    }
> ##D    plot(log(na.omit(Xsparse$mis)), type="b", 
> ##D         xlab="iteration", ylab="log(minimum distance)", 
> ##D         main="progress on minimum distance")
> ##D    abline(v=n, lty=2)
> ##D    mtext(paste0("design size=", n), at=n, cex=0.6)
> ##D   
> ## End(Not run)
>   
>   ## maximin
>   # generate the design
>   library(lhs)
Error: package or namespace load failed for 'lhs' in library.dynam(lib, package, package.lib):
 DLL 'Rcpp' not found: maybe not installed for this architecture?
Execution halted