Skip to content

Commit

Permalink
add lifecycle message
Browse files Browse the repository at this point in the history
  • Loading branch information
maelle authored and krlmlr committed Aug 29, 2024
1 parent f1055eb commit 66d0e67
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions R/conversion.R
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,10 @@ get.adjacency.dense <- function(graph, type = c("both", "upper", "lower"),

if (is.logical(loops)) {
loops <- ifelse(loops, "once", "ignore")
lifecycle::deprecate_soft(
"2.0.4", "get.adjacency.dense(loops = 'must be a character')",
details = sprintf("Converting to get.adjacency.dense (loops = '%s')", loops)
)
}
loops <- igraph.match.arg(loops)
loops <- switch(loops,
Expand Down

0 comments on commit 66d0e67

Please sign in to comment.