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

> ### Name: dbplsr
> ### Title: Distance-based partial least squares regression
> ### Aliases: dbplsr dbplsr.formula dbplsr.dist dbplsr.D2 dbplsr.Gram
> ###   print.dbplsr
> 
> ### ** Examples
> 
> #require(pls)
> library(pls)
> data(yarn)
> ## Default methods:
> yarn.dbplsr <- dbplsr(density ~ NIR, data = yarn, ncomp=6, method="GCV")
Error in class(z) != "data.frame" && class(z) != "matrix" : 
  'length = 2' in coercion to 'logical(1)'
Error in dbplsr.formula(density ~ NIR, data = yarn, ncomp = 6, method = "GCV") : 
  object 'ans' not found
Calls: dbplsr -> dbplsr.formula
Execution halted
Running examples in ‘dbstats-Ex.R’ failed
The error most likely occurred in:

> ### Name: dbplsr
> ### Title: Distance-based partial least squares regression
> ### Aliases: dbplsr dbplsr.formula dbplsr.dist dbplsr.D2 dbplsr.Gram
> ###   print.dbplsr
> 
> ### ** Examples
> 
> #require(pls)
> library(pls)
> data(yarn)
> ## Default methods:
> yarn.dbplsr <- dbplsr(density ~ NIR, data = yarn, ncomp=6, method="GCV")
Error in class(z) != "data.frame" && class(z) != "matrix" : 
  'length = 2' in coercion to 'logical(1)'
Error in dbplsr.formula(density ~ NIR, data = yarn, ncomp = 6, method = "GCV") : 
  object 'ans' not found
Calls: dbplsr -> dbplsr.formula
Execution halted