Skip to content

Error with CVXR::solve() #10

@cswingle

Description

@cswingle

CVXR introduced a breaking change in the solve() function and now, migest fails to build with:

Error: object ‘solve’ is not exported by 'namespace:CVXR'

Based on the releases for the most recent CVXR version, you need to use psolve() to get the same behavior as solve() in the older packages. I attempted to make this change, but when I run devtools::check() one of the examples fails with another error (below). I don't see anything in the CVXR releases file that indicates the Variable() function has also changed, so I'm not sure where to go from here.

Error in `CVXR::Variable()`:
! Variable name "4" must be a string.
Backtrace:
    ▆
 1. └─migest::net_matrix_entropy(net_tot = net, m = m)
 2.   └─CVXR::Variable(n, n)
 3.     └─cli::cli_abort("Variable name {.val {as.character(name)}} must be a string.")
 4.       └─rlang::abort(...)

Alternatively, you could require version 1.0-15 or less in DESCRIPTION.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions