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

> ### Name: contourview.function
> ### Title: Plot a contour view of a prediction model or function, including
> ###   design points if available.
> ### Aliases: contourview.function contourview,function,function-method
> ###   contourview.matrix contourview,matrix,matrix-method
> ###   contourview.character contourview,character,character-method
> ###   contourview.km contourview,km,km-method contourview.Kriging
> ###   contourview,Kriging,Kriging-method contourview.NuggetKriging
> ###   contourview,NuggetKriging,NuggetKriging-method
> ###   contourview.NoiseKriging contourview,NoiseKriging,NoiseKriging-method
> ###   contourview.glm contourview,glm,glm-method contourview.list
> ###   contourview,list,list-method contourview
> 
> ### ** Examples
> 
> x1 <- rnorm(15)
> x2 <- rnorm(15)
> 
> y <- x1 + x2 + rnorm(15)
> model <- lm(y ~ x1 + x2)
> 
> contourview(function(x) sum(x),
+                      Xlim=cbind(range(x1),range(x2)), col='black')
> points(x1,x2)
> 
> contourview(function(x) {
+                       x = as.data.frame(x)
+                       colnames(x) <- all.vars(model$call)[-1]
+                       predict.lm(model, newdata=x, se.fit=FALSE)
+                     }, vectorized=TRUE, add=TRUE)
> 
> X = matrix(runif(15*2),ncol=2)
> y = apply(X,1,branin)
> 
> contourview(X, y)
> 
> x1 <- rnorm(15)
> x2 <- rnorm(15)
> 
> y <- x1 + x2^2 + rnorm(15)
> model <- glm(y ~ x1 + I(x2^2))
> 
> contourview(model)
> 
> contourview("abline(h=0.25,col='red')")
Warning in getView(2, TRUE, NA, NA, NA, axis, mfrow) :
  Xlim ignored when add=TRUE, replaced by: -1.80495862889104,2.40161776050478,-1.52356680042976,1.1780869965732
> if (requireNamespace("DiceKriging")) { library(DiceKriging)
+ 
+ X = matrix(runif(15*2),ncol=2)
+ y = apply(X,1,branin)
+ 
+ model <- km(design = X, response = y, covtype="matern3_2")
+ 
+ contourview(model)
+ 
+ }
Loading required namespace: DiceKriging

Attaching package: 'DiceKriging'

The following object is masked from 'package:DiceView':

    branin


optimisation start
------------------
* estimation method   : MLE 
* optimisation method : BFGS 
* analytical gradient : used
* trend model : ~1
* covariance model : 
  - type :  matern3_2 
  - nugget : NO
  - parameters lower bounds :  1e-10 1e-10 
  - parameters upper bounds :  1.722538 1.615081 
  - best initial criterion value(s) :  -66.36114 

N = 2, M = 5 machine precision = 2.22045e-16
At X0, 0 variables are exactly at the bounds
At iterate     0  f=       66.361  |proj g|=      0.68261
At iterate     1  f =       66.307  |proj g|=       0.46706
At iterate     2  f =       66.294  |proj g|=      0.083768
At iterate     3  f =       66.294  |proj g|=      0.016745
At iterate     4  f =       66.294  |proj g|=    0.00062148
At iterate     5  f =       66.294  |proj g|=    5.6081e-05

iterations 5
function evaluations 9
segments explored during Cauchy searches 6
BFGS updates skipped 0
active bounds at final generalized Cauchy point 0
norm of the final projected gradient 5.6081e-05
final function value 66.2936

F = 66.2936
final  value 66.293568 
converged
> 
> if (requireNamespace("rlibkriging")) { library(rlibkriging)
+ 
+ X = matrix(runif(15*2),ncol=2)
+ y = apply(X,1,branin)
+ 
+ model <- Kriging(X = X, y = y, kernel="matern3_2")
+ 
+ contourview(model)
+ 
+ }
Loading required namespace: rlibkriging

Attaching package: 'rlibkriging'

The following object is masked from 'package:DiceKriging':

    leaveOneOutFun

The following object is masked from 'package:stats':

    kernel

The following objects are masked from 'package:base':

    beta, load, save

> 
> if (requireNamespace("rlibkriging")) { library(rlibkriging)
+ 
+ X = matrix(runif(15*2),ncol=2)
+ y = apply(X,1,branin) + 5*rnorm(15)
+ 
+ model <- NuggetKriging(X = X, y = y, kernel="matern3_2")
+ 
+ contourview(model)
+ 
+ }
Error in NuggetKriging(X = X, y = y, kernel = "matern3_2") : 
  could not find function "NuggetKriging"
Execution halted