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

> ### Name: diag,Expression-method
> ### Title: Matrix Diagonal
> ### Aliases: diag,Expression-method diag
> 
> ### ** Examples
> 
> C <- Variable(3,3)
> obj <- Maximize(C[1,3])
> constraints <- list(diag(C) == 1, C[1,2] == 0.6, C[2,3] == -0.3, C == Semidef(3))
> prob <- Problem(obj, constraints)
> result <- solve(prob)

 *** caught segfault ***
address 0, cause 'memory not mapped'

Traceback:
 1: (function (A, b, obj, cone, control = scs_control()) {    control <- update_default_controls(control)    n_variables <- NCOL(A)    n_constraints <- NROW(A)    if (inherits(A, "dgCMatrix")) {        Ai <- A@i        Ap <- A@p        Ax <- A@x    }    else {        csc <- make_csc_matrix(A)        Ai <- csc[["matind"]]        Ap <- csc[["matbeg"]]        Ax <- csc[["values"]]    }    ret <- .Call("scsr", n_variables, n_constraints, obj, Ai,         Ap, Ax, b, cone, control, PACKAGE = "scs")    return(ret)})(A = new("dgCMatrix", i = c(0L, 5L, 6L, 7L, 3L, 8L, 1L, 9L, 10L, 11L, 4L, 12L, 2L, 13L, 5L, 14L, 6L, 8L, 15L, 7L, 11L, 16L, 9L, 17L, 10L, 12L, 18L, 13L, 19L), p = c(0L, 2L, 3L, 4L, 6L, 8L, 9L, 10L, 12L, 14L, 16L, 19L, 22L, 24L, 27L, 29L), Dim = c(20L, 15L), Dimnames = list(NULL, NULL), x = c(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, -1, -1, -1, -1, -1.4142135623731, -1, -1, -1.4142135623731, -1, -1, -1, -1, -1.4142135623731, -1, -1),     factors = list()), b = c(1, 1, 1, 0.6, -0.3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), obj = c(0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0, 0, 0, 0), cone = list(f = 14, l = 0, ep = 0, s = 3),     control = list(verbose = FALSE))
 2: do.call(scs::scs, c(scs_args, list(control = solver_opts)))
 3: Solver.solve(solver, objective, constraints, object@.cached_data,     warm_start, verbose, ...)
 4: Solver.solve(solver, objective, constraints, object@.cached_data,     warm_start, verbose, ...)
 5: CVXR::psolve(a, b, ...)
 6: CVXR::psolve(a, b, ...)
 7: solve.Problem(prob)
 8: solve(prob)
An irrecoverable exception occurred. R is aborting now ...