Skip to content

Commit

Permalink
meta
Browse files Browse the repository at this point in the history
  • Loading branch information
maelle committed Mar 25, 2024
1 parent 20dc1e4 commit 914b776
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions R/attributes.R
Original file line number Diff line number Diff line change
Expand Up @@ -337,12 +337,14 @@ set_graph_attr <- function(graph, name, value) {
ensure_igraph(graph)

# Code that accesses g$layout can stay for now, revisit in 2029.
# https://github.com/igraph/rigraph/issues/775
if (name == "layout" && is.matrix(value)) {
lifecycle::deprecate_stop(
"2.0.3",
"2.1.0",
"set_graph_attr(layout = 'matrix(...)')",
"set_vertex_attr(layout = )",
details = "Using a matrix for the `layout` attribute is deprecated. Set the vertex attribute `layout` instead."
details = "Using a matrix for the `layout` attribute is deprecated.
Set the vertex attribute `layout` instead."
)
return(set_vertex_attr(graph, name, value))
}
Expand Down

0 comments on commit 914b776

Please sign in to comment.