Skip to content

Commit 3ff6705

Browse files
committed
remove suppress message
1 parent b3ef68e commit 3ff6705

File tree

5 files changed

+15
-562
lines changed

5 files changed

+15
-562
lines changed

R/ImgArray.R

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,7 @@ createImgArray <- function(
457457
#'
458458
#' @importFrom HDF5Array writeHDF5Array
459459
#' @importFrom Rarr writeZarrArray
460+
#' @importFrom rhdf5 h5createFile h5createGroup
460461
#' @import DelayedArray
461462
#'
462463
#' @export
@@ -529,9 +530,9 @@ writeImgArray <- function(
529530
if (!file.exists(ondisk_path)) {
530531
rhdf5::h5createFile(ondisk_path)
531532
}
532-
suppressMessages({
533+
# TODO: is there a better way to check existing groups
534+
if(!name %in% c("", "/"))
533535
rhdf5::h5createGroup(ondisk_path, group = name)
534-
})
535536
},
536537
ZarrImgArray = {
537538
dir.zarr <- gsub(paste0(basename(ondisk_path), "$"), "", ondisk_path)

0 commit comments

Comments
 (0)