serialize the collection of XenSPEP and parquet with zip

zipXenSPEP(xsp, targetfile)

Arguments

xsp

instance of XenSPEP with geometry loaded

targetfile

character(1) destination of zip process

Value

output of zip()

Note

a .rds and three parquet files are zipped together for restoration by `restoreZipXenSPEP`. The outcome is `paste0(targetfile, ".zip")`.

Examples

zipXenSPEP
#> function (xsp, targetfile) 
#> {
#>     stopifnot(is(xsp, "XenSPEP"))
#>     stopifnot(isTRUE(slot(xsp, "loaded")))
#>     pas = unlist(lapply(c("cellbounds_path", "nucbounds_path", 
#>         "tx_path"), function(x) slot(xsp, x)))
#>     rdstarg = paste0(basename(tempfile()), ".rds")
#>     saveRDS(xsp, file = rdstarg, compress = "xz")
#>     zip(targetfile, c(rdstarg, pas))
#> }
#> <bytecode: 0x622d50c33538>
#> <environment: namespace:xenLite>