From 23b5efbe81e3edbf8e2c199edcaf690c857ccde7 Mon Sep 17 00:00:00 2001 From: Brian Neal Date: Sun, 7 Jan 2024 14:22:08 -0800 Subject: [PATCH] Remove test of igraph clustering algorithm results --- DESCRIPTION | 2 +- NEWS.md | 8 ++++++++ tests/testthat/test_functions.R | 3 --- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index 752d284..4b9e0e2 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,7 +1,7 @@ Package: NAIR Type: Package Title: Network Analysis of Immune Repertoire -Version: 1.0.2 +Version: 1.0.2.9000 Authors@R: c( person("Brian", "Neal", email = "Brian.Neal@ucsf.edu", role = c("aut", "cre")), person("Hai", "Yang", email = "Hai.Yang@ucsf.edu", role = "aut"), diff --git a/NEWS.md b/NEWS.md index c62bb83..4dfdf9f 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,3 +1,11 @@ +# NAIR, Current Development Version + +## Minor Changes and Bug Fixes + +* Removed a package test that checked for particular numbers of clusters resulting from specific applications of clustering algorithms from the `igraph` package. The test no longer passes with `igraph` version 1.6.0. Rather than update the test to pass, it has been removed to avoid future occurrences of this issue. + + + # NAIR 1.0.2 ## Minor Changes and Bug Fixes diff --git a/tests/testthat/test_functions.R b/tests/testthat/test_functions.R index 00cfe86..0af9033 100644 --- a/tests/testthat/test_functions.R +++ b/tests/testthat/test_functions.R @@ -719,9 +719,6 @@ test_that("addClusterMembership works", { expect_true( .isPosIntegerVector(net$node_data$cluster_leiden, factor_ok = TRUE) ) - expect_equal( - net$details$clusters_in_network, c("fast_greedy" = 20, "leiden" = 55) - ) expect_equal( net$details$cluster_id_variable, c("fast_greedy" = "cluster_greedy", "leiden" = "cluster_leiden")