From d3bdec3a0768ce8b65533a268a67df73dbcc7d8e Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 28 Jul 2026 06:48:15 +0000 Subject: [PATCH] fix: name `norm_coords()` arguments at the `rglplot.igraph()` call site The nightly `rcc: ubuntu-26.04 (4.6) with lifecycle errors` leg fails in 'test-plot.R:85' ("rglplot() works"): Error: Calling `norm_coords()` with positional or abbreviated arguments was deprecated in igraph 3.0.0. `rglplot.igraph()` still calls `norm_coords()` positionally, an indirect soft deprecation that only this leg surfaces. #2799 named the arguments at the 2-D `plot.igraph()` call site but missed this second, 3-D one. Name the arguments here as well, so the call no longer routes through the migration shim. Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_016M32izVHZPfxAqemAe4BrX --- R/plot.R | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/R/plot.R b/R/plot.R index d77c6b5327..8c8ccc6e50 100644 --- a/R/plot.R +++ b/R/plot.R @@ -1623,7 +1623,15 @@ rglplot.igraph <- function(x, ...) { layout <- cbind(layout, 0) } if (rescale) { - layout <- norm_coords(layout, -1, 1, -1, 1, -1, 1) + layout <- norm_coords( + layout, + xmin = -1, + xmax = 1, + ymin = -1, + ymax = 1, + zmin = -1, + zmax = 1 + ) } # add the edges, the loops are handled separately