From 67ef11c603c6b0eec27655f4014a37e3d6c2e114 Mon Sep 17 00:00:00 2001 From: Damien RAT Date: Fri, 18 Oct 2024 15:50:43 +0200 Subject: [PATCH] Solved Error : Conditional expressions require scalar logical operators (&& and ||) --- tools/camera/CAMERA_findIsotopes.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/camera/CAMERA_findIsotopes.R b/tools/camera/CAMERA_findIsotopes.R index 652a25267..1b769f3e7 100755 --- a/tools/camera/CAMERA_findIsotopes.R +++ b/tools/camera/CAMERA_findIsotopes.R @@ -148,7 +148,7 @@ print("calcIsotopeMatrix") calcIsotopeMatrix <- function(maxiso = 4) { if (!is.numeric(maxiso)) { stop("Parameter maxiso is not numeric!\n") - } else if (maxiso < 1 | maxiso > 8) { + } else if (maxiso < 1 || maxiso > 8) { stop(paste( "Parameter maxiso must be between 1 and 8. ", "Otherwise, use your own IsotopeMatrix.\n"