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

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: slim
> ### Title: Sparse Linear Regression using Nonsmooth Loss Functions and L1
> ###   Regularization
> ### Aliases: slim
> 
> ### ** Examples
> 
> ## load library
> library(flare)
> ## generate data
> n = 50
> d = 100
> X = matrix(rnorm(n*d), n, d)
> beta = c(3,2,0,1.5,rep(0,d-4))
> eps = rnorm(n)
> Y = X%*%beta + eps
> nlamb = 5
> ratio = 0.3
> 
> ## Regression with "dantzig", general "lq" and "lasso" respectively
> out1 = slim(X=X,Y=Y,nlambda=nlamb,lambda.min.ratio=ratio,method="dantzig")
Sparse Linear Regression with L1 Regularization.
Dantzig selector with screening.

slim options summary: 
5 lambdas used:
[1] 2.110 1.560 1.160 0.855 0.633
Method = dantzig 
Degree of freedom: 0 -----> 4 
Runtime: 0.004381895 secs 
> out2 = slim(X=X,Y=Y,nlambda=nlamb,lambda.min.ratio=ratio,method="lq",q=1)
Sparse Linear Regression with L1 Regularization.
Lad Lasso with screening.

slim options summary: 
5 lambdas used:
[1] 0.521 0.455 0.398 0.347 0.303
Method = lq 
q = 1  loss, LAD Lasso
Degree of freedom: 1 -----> 4 
Runtime: 1.101357 secs 
> out3 = slim(X=X,Y=Y,nlambda=nlamb,lambda.min.ratio=ratio,method="lq",q=1.5)
Sparse Linear Regression with L1 Regularization.
LQ norm regrelarized regression (q = 1.5 )  with screening.

slim options summary: 
5 lambdas used:
[1] 0.579 0.493 0.419 0.357 0.303
Method = lq 
q = 1.5 loss
Degree of freedom: 1 -----> 5 
Runtime: 2.275021 secs 
> out4 = slim(X=X,Y=Y,nlambda=nlamb,lambda.min.ratio=ratio,method="lq",q=2)
Sparse Linear Regression with L1 Regularization.
Square root Lasso with screening.

slim options summary: 
5 lambdas used:
[1] 0.641 0.532 0.441 0.366 0.303
Method = lq 
q = 2 loss, SQRT Lasso
Degree of freedom: 0 -----> 5 
Runtime: 0.03949404 secs 
> out5 = slim(X=X,Y=Y,nlambda=nlamb,lambda.min.ratio=ratio,method="lasso")
Sparse Linear Regression with L1 Regularization.
Lasso with screening.

slim options summary: 
5 lambdas used:
[1] 2.110 1.300 0.800 0.493 0.303
Method = lasso 
Degree of freedom: 0 -----> 5 
Runtime: 0.001452208 secs 
> 
> ## Display results
> print(out4)

slim options summary: 
5 lambdas used:
[1] 0.641 0.532 0.441 0.366 0.303
Method = lq 
q = 2 loss, SQRT Lasso
Degree of freedom: 0 -----> 5 
Runtime: 0.03949404 secs 
> plot(out4)
Error in xy.coords(x, y, xlabel, ylabel, log) : 
  'x' is a list, but does not have components 'x' and 'y'
Calls: plot -> plot.default -> xy.coords
Execution halted