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

> ### Name: BMsel
> ### Title: Biomarker selection in a Cox regression model
> ### Aliases: BMsel summary.resBMsel
> ### Keywords: survival biomarker selection prognostic interactions
> 
> ### ** Examples
> 
> ########################################
> # Simulated data set
> ########################################
> 
> ## Low calculation time
>   set.seed(654321)
>   sdata <- simdata(
+     n = 500, p = 20, q.main = 3, q.inter = 0,
+     prob.tt = 0.5, alpha.tt = 0,
+     beta.main = -0.8,
+     b.corr = 0.6, b.corr.by = 4,
+     m0 = 5, wei.shape = 1, recr = 4, fu = 2,
+     timefactor = 1)
> 
>   resBM <- BMsel(
+     data = sdata, 
+     method = c("lasso", "lasso-pcvl"), 
+     inter = FALSE, 
+     folds = 5)

Computing selection with method: lasso
Warning: from glmnet Fortran code (error code -30000); Numerical error at 0th lambda value; solutions for larger values of lambda returned
Warning in getcoef(fit, nvars, nx, vnames) :
  an empty model has been returned; probably a convergence issue
Warning: from glmnet Fortran code (error code -30000); Numerical error at 0th lambda value; solutions for larger values of lambda returned
Warning in getcoef(fit, nvars, nx, vnames) :
  an empty model has been returned; probably a convergence issue
Warning: from glmnet Fortran code (error code -30000); Numerical error at 0th lambda value; solutions for larger values of lambda returned
Warning in getcoef(fit, nvars, nx, vnames) :
  an empty model has been returned; probably a convergence issue
Warning: from glmnet Fortran code (error code -30000); Numerical error at 0th lambda value; solutions for larger values of lambda returned
Warning in getcoef(fit, nvars, nx, vnames) :
  an empty model has been returned; probably a convergence issue
Warning: from glmnet Fortran code (error code -30000); Numerical error at 0th lambda value; solutions for larger values of lambda returned
Warning in getcoef(fit, nvars, nx, vnames) :
  an empty model has been returned; probably a convergence issue
Warning: from glmnet Fortran code (error code -30000); Numerical error at 0th lambda value; solutions for larger values of lambda returned
Warning in getcoef(fit, nvars, nx, vnames) :
  an empty model has been returned; probably a convergence issue
Warning: from glmnet Fortran code (error code -30000); Numerical error at 0th lambda value; solutions for larger values of lambda returned
Warning in getcoef(fit, nvars, nx, vnames) :
  an empty model has been returned; probably a convergence issue
Error in coxnet(xd, is.sparse, ix, jx, y, weights, offset, alpha, nobs,  : 
  NA/NaN/Inf in foreign function call (arg 16)
Calls: BMsel -> lapply -> FUN -> <Anonymous> -> glmnet -> coxnet
Execution halted