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

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: krls
> ### Title: Kernel-based Regularized Least Squares (KRLS)
> ### Aliases: krls
> ### Keywords: multivariate, smooth, kernels, machine learning, regression,
> ###   classification
> 
> ### ** Examples
> 
> 
> # Linear example
> # set up data
> N <- 200
> x1 <- rnorm(N)
> x2 <- rbinom(N,size=1,prob=.2)
> y <- x1 + .5*x2 + rnorm(N,0,.15)
> X <- cbind(x1,x2)
> # fit model
> krlsout <- krls(X=X,y=y)
Warning in Eigenobject$values + lambda :
  Recycling array of length 1 in vector-array arithmetic is deprecated.
  Use c() or as.vector() instead.

Warning in Eigenobject$values + lambda :
  Recycling array of length 1 in vector-array arithmetic is deprecated.
  Use c() or as.vector() instead.


 Average Marginal Effects:
 
       x1        x2 
0.9642412 0.5296197 

 Quartiles of Marginal Effects:
 
          x1        x2
25% 0.985504 0.5005199
50% 1.010522 0.5228831
75% 1.058631 0.5397958
> # summarize marginal effects and contribution of each variable
> summary(krlsout)
* *********************** *
Model Summary:

R2: 0.9737558 

Average Marginal Effects:
          Est Std. Error  t value      Pr(>|t|)
x1  0.9642412 0.01299838 74.18166 1.958725e-146
x2* 0.5296197 0.03957997 13.38100  1.654343e-29

(*) average dy/dx is for discrete change of dummy variable from min to max (i.e. usually 0 to 1))


Quartiles of Marginal Effects:
          25%       50%       75%
x1  0.9855040 1.0105223 1.0586313
x2* 0.5005199 0.5228831 0.5397958

(*) quantiles of dy/dx is for discrete change of dummy variable from min to max (i.e. usually 0 to 1))

> # plot marginal effects and conditional expectation plots
> plot(krlsout)
Error 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
Calls: plot ... getNamespace -> loadNamespace -> library.dynam -> dyn.load
Execution halted