From c29d225126e681a957279988be9df6589e0ae6ba Mon Sep 17 00:00:00 2001 From: Carsten Dormann Date: Fri, 15 Sep 2023 18:10:15 +0200 Subject: [PATCH] oh dear: fixed the bug fix for forgotten () around the if condition! I guess moving between languages does have its downsides ... --- bipartite/R/computeModules.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bipartite/R/computeModules.R b/bipartite/R/computeModules.R index 3b6cd35..e19b8b4 100755 --- a/bipartite/R/computeModules.R +++ b/bipartite/R/computeModules.R @@ -313,7 +313,7 @@ isCorrectModuleWebObject = function(moduleWebObject) { warning("Object corrupt."); FALSE; } - else if any(min(slot(moduleWebObject, "originalWeb")) < 0 || min(slot(moduleWebObject, "moduleWeb")) < 0) { + else if (any(min(slot(moduleWebObject, "originalWeb")) < 0 || min(slot(moduleWebObject, "moduleWeb")) < 0)) { warning("entries of matrix have to be greater than or equal to 0."); FALSE }