From 4929ef35b8842ac1615c20baeae474425241f84a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABlle=20Salmon?= Date: Fri, 3 Jul 2026 15:52:48 +0200 Subject: [PATCH 1/4] chore: rm modifs of variable not used in logic branch --- R/print.R | 6 ------ 1 file changed, 6 deletions(-) diff --git a/R/print.R b/R/print.R index 1a424b01842..3c74df250ae 100644 --- a/R/print.R +++ b/R/print.R @@ -643,12 +643,6 @@ print_igraph_legacy <- function( ) { head_lines <- .print.header(x, id) if (is.logical(full) && full) { - if (graph.attributes) { - head_lines <- head_lines + .print.graph.attributes(x, full, max.lines) - } - if (vertex.attributes) { - head_lines <- head_lines + .print.vertex.attributes(x, full, max.lines) - } if (ecount(x) == 0) { ## Do nothing } else if (edge.attributes && length(edge_attr_names(x)) != 0) { From 7289e95a365d5f4a48d95bd8dc62fa2c3d3d6839 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABlle=20Salmon?= Date: Fri, 3 Jul 2026 15:53:13 +0200 Subject: [PATCH 2/4] chore: rm unused variable --- R/print.R | 1 - 1 file changed, 1 deletion(-) diff --git a/R/print.R b/R/print.R index 3c74df250ae..71b46f9805a 100644 --- a/R/print.R +++ b/R/print.R @@ -373,7 +373,6 @@ print_edge_detail <- function(graph, edges) { if (!is.null(x)) { arrow <- c("--", "->")[is_directed(x) + 1] - can_max <- NA el <- NA fun <- function(q, no) { From 571d7cbc51b1832a5ba8c4f4c4ec78a9cb6583ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABlle=20Salmon?= Date: Mon, 6 Jul 2026 08:28:16 +0200 Subject: [PATCH 3/4] fix --- R/print.R | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/R/print.R b/R/print.R index 71b46f9805a..31d88149009 100644 --- a/R/print.R +++ b/R/print.R @@ -642,6 +642,12 @@ print_igraph_legacy <- function( ) { head_lines <- .print.header(x, id) if (is.logical(full) && full) { + if (graph.attributes) { + .print.graph.attributes(x, full, max.lines) + } + if (vertex.attributes) { + .print.vertex.attributes(x, full, max.lines) + } if (ecount(x) == 0) { ## Do nothing } else if (edge.attributes && length(edge_attr_names(x)) != 0) { From 7a988048127d55bc1f5712224c2bc6cb1c365d20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABlle=20Salmon?= Date: Mon, 6 Jul 2026 08:58:59 +0200 Subject: [PATCH 4/4] add exception --- R/print.R | 2 ++ 1 file changed, 2 insertions(+) diff --git a/R/print.R b/R/print.R index 31d88149009..4a4535a95a0 100644 --- a/R/print.R +++ b/R/print.R @@ -373,6 +373,8 @@ print_edge_detail <- function(graph, edges) { if (!is.null(x)) { arrow <- c("--", "->")[is_directed(x) + 1] + # jarl-ignore unused_object: then assigned to with <<- + can_max <- NA el <- NA fun <- function(q, no) {