From d5c9403885979311b102206b6e34eff4b53d6f49 Mon Sep 17 00:00:00 2001 From: alexq Date: Wed, 31 Jul 2024 10:01:50 +1000 Subject: [PATCH] changed to warning --- R/spicy.R | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/R/spicy.R b/R/spicy.R index 6ab2d04..388d085 100644 --- a/R/spicy.R +++ b/R/spicy.R @@ -149,9 +149,9 @@ spicy <- function(cells, ## Check whether the subject parameter has a one-to-one mapping with image if (!is.null(subject)) { - if (nrow(unique(cells[, subject])) == nrow(unique(cells[, imageIDCol]))) { + if (nrow(as.data.frame(unique(cells[, subject]))) == nrow(as.data.frame(unique(cells[, imageIDCol])))) { subject <- NULL - cli::cli_inform("Your specified subject parameter has a one-to-one mapping with imageID. Converting to a linear model instead of mixed model.") + warning("Your specified subject parameter has a one-to-one mapping with imageID. Converting to a linear model instead of mixed model.") } }