From 4c0a494552512fd4a46e583c5512f86f390d5b8d Mon Sep 17 00:00:00 2001 From: Paul Hoffman Date: Wed, 10 Apr 2024 16:56:43 -0400 Subject: [PATCH] Use `packageVersion("SeuratObject")` in `UpdateSeuratObject()` Use the package version of SeuratObject instead of Seurat in `UpdateSeuratObject()`; this allows running `UpdateSeuratObject()` without requiring Seurat to be installed --- R/seurat.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/seurat.R b/R/seurat.R index 4c85adc7..71bf1e89 100644 --- a/R/seurat.R +++ b/R/seurat.R @@ -1104,7 +1104,7 @@ UpdateSeuratObject <- function(object) { ) } # Update object version - slot(object = object, name = 'version') <- packageVersion(pkg = 'Seurat') + slot(object = object, name = 'version') <- packageVersion(pkg = 'SeuratObject') } object <- suppressWarnings( expr = UpdateSlots(object = object),