Running examples in ‘RcppPlanc-Ex.R’ failed
The error most likely occurred in:

> ### Name: H5SpMat
> ### Title: Argument list object for using a sparse matrix stored in HDF5
> ###   file
> ### Aliases: H5SpMat as.H5SpMat as.H5SpMat.matrix as.H5SpMat.dgCMatrix
> ###   as.H5SpMat.default
> 
> ### ** Examples
> 
> if (require("withr")) {
+   H5SpMatEx <- function() {
+     withr::local_dir(withr::local_tempdir())
+     h <- H5SpMat(system.file("extdata/ctrl_sparse.h5", package = "RcppPlanc"),
+          "scaleDataSparse/data", "scaleDataSparse/indices", "scaleDataSparse/indptr", 173, 300)
+     dim(h)
+ 
+     library(Matrix)
+     ctrl.dense <- as.matrix(ctrl.sparse)
+     h1 <- as.H5SpMat(ctrl.sparse, "ctrl_from_sparse_to_sparse.h5", "matrix")
+     h1
+     h2 <- as.H5SpMat(ctrl.dense, "ctrl_from_dense_to_sparse.h5", "matrix")
+     h2
+   }
+   H5SpMatEx()
+ }
Loading required package: withr
Error in self$flush() : HDF5-API Errors:
    error #000: ../../src/hdf5-1.12.2/src/H5FDint.c in H5FD_write(): line 240: driver write request failed
        class: HDF5
        major: Virtual File Layer
        minor: Write failed

    error #001: ../../src/hdf5-1.12.2/src/H5FDsec2.c in H5FD__sec2_write(): line 870: file write failed: time = Wed May 21 12:05:45 2025
, filename = '/private/var/folders/k4/0jwzxmln0nb8y6rkzprptb640000gq/T/RtmplJA1u1/file2cce16654806/ctrl_from_dense_to_        class: HDF5
        major: Low-level I/O
        minor: Write failed

    error #002: ../../src/hdf5-1.12.2/src/H5Dchunk.c in H5D__chunk_flush_entry(): line 3452: unable to write raw data to file
        class: HDF5
        major: Dataset
        minor: Write failed

    error #003: ../../src/hdf5-1.12.2/src/H5Fio.c in H5F_shared_block_write(): line 191: write through page buffer failed
        class: HDF5
        major: Low-level I/O
        minor: Write failed

    error #004: ../../src/hdf5-1.12.2/src/H5PB.c in H
Calls: H5SpMatEx ... .h5attr_write -> <Anonymous> -> <Anonymous> -> <Anonymous> -> .Call
Execution halted