From dec7d7d7ee7b50fca390f6ccfd1821872adb38c3 Mon Sep 17 00:00:00 2001 From: josschavezf Date: Wed, 25 Sep 2024 11:23:24 -0400 Subject: [PATCH] add overwrite = TRUE to solve test error --- R/save_load.R | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/R/save_load.R b/R/save_load.R index 679d7364..0bc9a90e 100644 --- a/R/save_load.R +++ b/R/save_load.R @@ -92,7 +92,7 @@ saveGiotto <- function(gobject, ) terra::writeVector( x = gobject@feat_info[[feat]]@spatVector, - filename = filename + filename = filename, overwrite = TRUE ) } @@ -134,7 +134,7 @@ saveGiotto <- function(gobject, ) terra::writeVector( gobject@spatial_info[[spatinfo]]@spatVector, - filename = filename + filename = filename, overwrite = TRUE ) } @@ -162,7 +162,7 @@ saveGiotto <- function(gobject, ) terra::writeVector( gobject@spatial_info[[spatinfo]]@spatVectorCentroids, - filename = filename + filename = filename, overwrite = TRUE ) } @@ -197,7 +197,7 @@ saveGiotto <- function(gobject, ) terra::writeVector( gobject@spatial_info[[spatinfo]]@overlaps[[feature]], - filename = filename + filename = filename, overwrite = TRUE ) } }