Skip to content

Deprecated function in network() #359

@evaham1

Description

@evaham1

🐞 Describe the bug:

Warning when run unit tests for the network() function:

Warning (test-network.R:13:3): network works for rcc
`layout.fruchterman.reingold()` was deprecated in igraph 2.1.0.
ℹ Please use `layout_with_fr()` instead.
Backtrace:
    ▆
 1. └─mixOmics::network(...) at test-network.R:13:3
 2.   └─igraph::layout.fruchterman.reingold(gR, weights = (1 - abs(E(gR)$weight))) at mixOmics/R/network.R:1052:9

🔍 reprex results from reproducible example including sessioninfo():

Run devtools::test() on mixOmics package


🤔 Expected behavior:

No warnings


💡 Possible solution:

Check latest igraph and update from layout.fruchterman.reingold() to layout_with_fr(), check functionality is still the same using unit tests

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions