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

> ### Name: .compare
> ### Title: Performance measurement
> ### Aliases: .compare
> 
> ### ** Examples
> 
> ## Don't show: 
> n <- 20; p <- 10
> y <- rnorm(n)
> X <- matrix(rnorm(n*p),nrow=n,ncol=p)
> loss <- cornet:::.compare(y=y,cutoff=0,X=X,nfolds=2)
Warning in lognet(x, is.sparse, ix, jx, y, weights, offset, alpha, nobs,  :
  one multinomial or binomial class has fewer than 8  observations; dangerous ground
Warning in lognet(x, is.sparse, ix, jx, y, weights, offset, alpha, nobs,  :
  one multinomial or binomial class has fewer than 8  observations; dangerous ground
Warning in lognet(x, is.sparse, ix, jx, y, weights, offset, alpha, nobs,  :
  one multinomial or binomial class has fewer than 8  observations; dangerous ground
Warning in lognet(x, is.sparse, ix, jx, y, weights, offset, alpha, nobs,  :
  one multinomial or binomial class has fewer than 8  observations; dangerous ground
Warning in lognet(x, is.sparse, ix, jx, y, weights, offset, alpha, nobs,  :
  one multinomial or binomial class has fewer than 8  observations; dangerous ground
Warning in lognet(x, is.sparse, ix, jx, y, weights, offset, alpha, nobs,  :
  one multinomial or binomial class has fewer than 8  observations; dangerous ground
Warning in lognet(x, is.sparse, ix, jx, y, weights, offset, alpha, nobs,  :
  one multinomial or binomial class has fewer than 8  observations; dangerous ground
Warning in cbind2(1, newx) :
  number of rows of result is not a multiple of vector length (arg 1)
Warning in lognet(x, is.sparse, ix, jx, y, weights, offset, alpha, nobs,  :
  one multinomial or binomial class has fewer than 8  observations; dangerous ground
Warning in cbind2(1, newx) :
  number of rows of result is not a multiple of vector length (arg 1)
Warning in cbind2(1, newx) :
  number of rows of result is not a multiple of vector length (arg 1)
Warning in lognet(x, is.sparse, ix, jx, y, weights, offset, alpha, nobs,  :
  one multinomial or binomial class has fewer than 8  observations; dangerous ground
Warning in cbind2(1, newx) :
  number of rows of result is not a multiple of vector length (arg 1)
Warning in cbind2(1, newx) :
  number of rows of result is not a multiple of vector length (arg 1)
Warning in lognet(x, is.sparse, ix, jx, y, weights, offset, alpha, nobs,  :
  one multinomial or binomial class has fewer than 8  observations; dangerous ground
Warning in cbind2(1, newx) :
  number of rows of result is not a multiple of vector length (arg 1)
Warning in cbind2(1, newx) :
  number of rows of result is not a multiple of vector length (arg 1)
Warning in lognet(x, is.sparse, ix, jx, y, weights, offset, alpha, nobs,  :
  one multinomial or binomial class has fewer than 8  observations; dangerous ground
Warning in cbind2(1, newx) :
  number of rows of result is not a multiple of vector length (arg 1)
Warning in lognet(x, is.sparse, ix, jx, y, weights, offset, alpha, nobs,  :
  one multinomial or binomial class has fewer than 8  observations; dangerous ground
Warning in lognet(x, is.sparse, ix, jx, y, weights, offset, alpha, nobs,  :
  one multinomial or binomial class has fewer than 8  observations; dangerous ground
Warning in lognet(x, is.sparse, ix, jx, y, weights, offset, alpha, nobs,  :
  one multinomial or binomial class has fewer than 8  observations; dangerous ground
Warning in lognet(x, is.sparse, ix, jx, y, weights, offset, alpha, nobs,  :
  one multinomial or binomial class has fewer than 8  observations; dangerous ground
Warning in lognet(x, is.sparse, ix, jx, y, weights, offset, alpha, nobs,  :
  one multinomial or binomial class has fewer than 8  observations; dangerous ground
Warning in lognet(x, is.sparse, ix, jx, y, weights, offset, alpha, nobs,  :
  one multinomial or binomial class has fewer than 8  observations; dangerous ground
Warning in lognet(x, is.sparse, ix, jx, y, weights, offset, alpha, nobs,  :
  one multinomial or binomial class has fewer than 8  observations; dangerous ground
Warning in cbind2(1, newx) :
  number of rows of result is not a multiple of vector length (arg 1)
Warning in lognet(x, is.sparse, ix, jx, y, weights, offset, alpha, nobs,  :
  one multinomial or binomial class has fewer than 8  observations; dangerous ground
Warning in cbind2(1, newx) :
  number of rows of result is not a multiple of vector length (arg 1)
Warning in cbind2(1, newx) :
  number of rows of result is not a multiple of vector length (arg 1)
Warning in lognet(x, is.sparse, ix, jx, y, weights, offset, alpha, nobs,  :
  one multinomial or binomial class has fewer than 8  observations; dangerous ground
Warning in cbind2(1, newx) :
  number of rows of result is not a multiple of vector length (arg 1)
Warning in cbind2(1, newx) :
  number of rows of result is not a multiple of vector length (arg 1)
Warning in lognet(x, is.sparse, ix, jx, y, weights, offset, alpha, nobs,  :
  one multinomial or binomial class has fewer than 8  observations; dangerous ground
Warning in cbind2(1, newx) :
  number of rows of result is not a multiple of vector length (arg 1)
Warning in cbind2(1, newx) :
  number of rows of result is not a multiple of vector length (arg 1)
Warning in lognet(x, is.sparse, ix, jx, y, weights, offset, alpha, nobs,  :
  one multinomial or binomial class has fewer than 8  observations; dangerous ground
Warning in cbind2(1, newx) :
  number of rows of result is not a multiple of vector length (arg 1)
Error in matrix(data = NA, nrow = length(weights), ncol = ncol(fit)) : 
  non-numeric matrix extent
Calls: <Anonymous> -> lapply -> FUN -> <Anonymous> -> matrix
Execution halted