Skip to content

Commit

Permalink
feat: use cli::cli_warn() in conversion.R
Browse files Browse the repository at this point in the history
  • Loading branch information
maelle committed Oct 15, 2024
1 parent 51de8c0 commit 3f5db2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/conversion.R
Original file line number Diff line number Diff line change
Expand Up @@ -819,7 +819,7 @@ as_graphnel <- function(graph) {

g.n <- graph_attr_names(graph)
if ("directed" %in% g.n) {
warning("Cannot add graph attribute `directed'")
cli::cli_warn("Cannot add graph attribute {.str directed}.")
g.n <- g.n[g.n != "directed"]
}
for (n in g.n) {
Expand Down

0 comments on commit 3f5db2c

Please sign in to comment.