R Under development (unstable) (2023-12-13 r85679 ucrt) -- "Unsuffered Consequences" Copyright (C) 2023 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(aster) > > data(radish) > > options(digits=4) # avoid rounding differences > > pred <- c(0,1,2) > fam <- c(1,3,2) > > rout <- reaster(resp ~ varb + fit : (Site * Region), ~ 0 + fit : Block, + pred, fam, varb, id, root, data = radish) > srout1a <- summary(rout) > srout1b <- summary(rout, stand = FALSE) > > foo <- new.env(parent = emptyenv()) > bar <- suppressWarnings(try(load("reaster1.rda", foo), silent = TRUE)) > if (inherits(bar, "try-error")) { + save(srout1a, srout1b, file = "reaster1.rda") + } else { + srout1a$object$iterations <- NULL + srout1b$object$iterations <- NULL + foo$srout1a$object$iterations <- NULL + foo$srout1b$object$iterations <- NULL + print(all.equal(srout1a, foo$srout1a, tol = 1e-4)) + print(all.equal(srout1b, foo$srout1b, tol = 1e-4)) + } [1] TRUE [1] TRUE > > > proc.time() user system elapsed 0.50 0.10 0.59