R Under development (unstable) (2024-11-29 r87406 ucrt) -- "Unsuffered Consequences" Copyright (C) 2024 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > library(qs2) qs2 0.1.3 > > cat("testing qs_savem and qs_readm\n") testing qs_savem and qs_readm > > expect_equal <- function(x, y) { + stopifnot(identical(x, y)) + } > > file <- tempfile() > > seurat <- 1 > lineages <- 2 > T.markers <- 3 > > qs_savem(file = file, seurat, lineages, T.markers) > > rm(seurat, lineages, T.markers) > qs_readm(file = file) > expect_equal(c(seurat, lineages, T.markers), c(1, 2, 3)) > > # alternate synatx > qs_savem(seurat, lineages, T.markers, file = file) > > rm(seurat, lineages, T.markers) > qs_readm(file = file) > expect_equal(c(seurat, lineages, T.markers), c(1, 2, 3)) > > # alternate synatx > qs_savem(seurat, lineages, file = file, T.markers) > > rm(seurat, lineages, T.markers) > qs_readm(file = file) > expect_equal(c(seurat, lineages, T.markers), c(1, 2, 3)) > > proc.time() user system elapsed 0.26 0.15 0.42