Skip to content

as() warning from Matrix #11

@gbrsales

Description

@gbrsales

Hi,

A recent update to the Matrix package made the following warning surface when I call triangulate() from my own code in package topologyGSA.

Error: as(, "dgCMatrix") is deprecated since Matrix 1.4-2; do as(., "generalMatrix") instead

It looks like version 1.4-2 does not exist, though. The message should rather mention 1.5-0.

Below is the full traceback, thanks to CRAN:

23: warning.(gettextf("as(<%s>, \"%s\") is deprecated since Matrix 1.4-2; do %s instead",
       cln1, cln2, deparse1(.as.via.virtual(Class1, Class2, quote(.)))),
       call. = FALSE, domain = NA)
22: Matrix.DeprecatedCoerce(cd1, cd2)
21: asMethod(object)
20: as(res, "dgCMatrix")
19: get.adjacency.sparse(graph, type = type, attr = attr, edges = edges,
       names = names)
18: igraph::as_adjacency_matrix(as(object, "igraph"))
17: .class1(object)
16: as(igraph::as_adjacency_matrix(as(object, "igraph")), "matrix")
15: g_gn2dm_(from)
14: asMethod(object)
13: as(object, class)
12: coerceGraph(object, "matrix")
11: .generic_triangulation(object, order = order, result = result,
       check = check, ..., TRIANG_FUN = triangulateMAT)
10: triangulate.default(moral)
9: triangulate(moral)
8: .processGraph(dag)
7: .procParams(y1, y2, dag)
6: clique.mean.test(y1, y2, dag_bcell, 0.05) at Rex732354ed9de7#9

Could you please update the as() call to silence the warning?

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