R Under development (unstable) (2025-06-04 r88278 ucrt) -- "Unsuffered Consequences" Copyright (C) 2025 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. > ## This runs testme test script inst/testme/test-rng.R > ## Don't edit - it was autogenerated by inst/testme/deploy.R > future.callr:::testme("rng") Test 'rng' ... Sourcing 9 prologue scripts ... 01/09 prologue script 'D:/RCompile/CRANincoming/R-devel/lib/future.callr/testme/_prologue/001.load.R' 02/09 prologue script 'D:/RCompile/CRANincoming/R-devel/lib/future.callr/testme/_prologue/002.record-state.R' 03/09 prologue script 'D:/RCompile/CRANincoming/R-devel/lib/future.callr/testme/_prologue/030.imports.R' 04/09 prologue script 'D:/RCompile/CRANincoming/R-devel/lib/future.callr/testme/_prologue/050.utils.R' 05/09 prologue script 'D:/RCompile/CRANincoming/R-devel/lib/future.callr/testme/_prologue/090.context.R' 06/09 prologue script 'D:/RCompile/CRANincoming/R-devel/lib/future.callr/testme/_prologue/090.options.R' 07/09 prologue script 'D:/RCompile/CRANincoming/R-devel/lib/future.callr/testme/_prologue/091.envvars.R' 08/09 prologue script 'D:/RCompile/CRANincoming/R-devel/lib/future.callr/testme/_prologue/099.future-setup.R' 09/09 prologue script 'D:/RCompile/CRANincoming/R-devel/lib/future.callr/testme/_prologue/995.detrius-connections.R' Sourcing 9 prologue scripts ... done Running test script: 'D:/RCompile/CRANincoming/R-devel/lib/future.callr/testme/test-rng.R' > library(future.callr) Loading required package: future > options(future.debug = FALSE) > message("*** RNG ...") *** RNG ... > plan(callr, workers = 2) > message("- run() does not update RNG state") - run() does not update RNG state > f1 <- future(1, lazy = TRUE) > f2 <- future(2, lazy = TRUE) > rng0 <- globalenv()$.Random.seed > f1 <- run(f1) > stopifnot(identical(globalenv()$.Random.seed, rng0)) > f2 <- run(f2) > stopifnot(identical(globalenv()$.Random.seed, rng0)) > v1 <- value(f1) > stopifnot(identical(v1, 1)) > v2 <- value(f2) > stopifnot(identical(v2, 2)) > message("- future() does not update RNG state") - future() does not update RNG state > rng0 <- globalenv()$.Random.seed > f1 <- future(1) > stopifnot(identical(globalenv()$.Random.seed, rng0)) > f2 <- future(2) > stopifnot(identical(globalenv()$.Random.seed, rng0)) > v1 <- value(f1) > stopifnot(identical(v1, 1)) > v2 <- value(f2) > stopifnot(identical(v2, 2)) > message("- resolved() does not update RNG state") - resolved() does not update RNG state > f1 <- future(1) > f2 <- future(2) > d1 <- resolved(f1) > stopifnot(identical(globalenv()$.Random.seed, rng0)) > d2 <- resolved(f2) > stopifnot(identical(globalenv()$.Random.seed, rng0)) > v1 <- value(f1) > stopifnot(identical(v1, 1)) > v2 <- value(f2) > stopifnot(identical(v2, 2)) > message("- result() does not update RNG state") - result() does not update RNG state > f1 <- future(1) > f2 <- future(2) > r1 <- result(f1) > stopifnot(identical(r1$value, 1)) > stopifnot(identical(globalenv()$.Random.seed, rng0)) > r2 <- result(f2) > stopifnot(identical(r2$value, 2)) > stopifnot(identical(globalenv()$.Random.seed, rng0)) > v1 <- value(f1) > stopifnot(identical(v1, 1)) > v2 <- value(f2) > stopifnot(identical(v2, 2)) > message("- value() does not update RNG state") - value() does not update RNG state > f1 <- future(1) > f2 <- future(2) > v1 <- value(f1) > stopifnot(identical(v1, 1)) > stopifnot(identical(globalenv()$.Random.seed, rng0)) > v2 <- value(f2) > stopifnot(identical(v2, 2)) > stopifnot(identical(globalenv()$.Random.seed, rng0)) > message("*** RNG ... DONE") *** RNG ... DONE Sourcing 6 epilogue scripts ... 01/06 epilogue script 'D:/RCompile/CRANincoming/R-devel/lib/future.callr/testme/_epilogue/001.undo-future.R' 02/06 epilogue script 'D:/RCompile/CRANincoming/R-devel/lib/future.callr/testme/_epilogue/002.undo-state.R' Failed to undo environment variables: - Expected environment variables: [n=213] '!ExitCode', 'ALLUSERSPROFILE', 'APPDATA', ..., 'tempdirname' - Environment variables still there: [n=0] - Environment variables missing: [n=1] 'MAKEFLAGS' Differences environment variable by environment variable: 03/06 epilogue script 'D:/RCompile/CRANincoming/R-devel/lib/future.callr/testme/_epilogue/090.gc.R' 04/06 epilogue script 'D:/RCompile/CRANincoming/R-devel/lib/future.callr/testme/_epilogue/099.session_info.R' 05/06 epilogue script 'D:/RCompile/CRANincoming/R-devel/lib/future.callr/testme/_epilogue/995.detritus-connections.R' 06/06 epilogue script 'D:/RCompile/CRANincoming/R-devel/lib/future.callr/testme/_epilogue/999.detritus-files.R' Skipping, because path appears not to be an 'R CMD check' folder: 'D:/temp/2025_06_05_19_20_16_14476' Sourcing 6 epilogue scripts ... done Test time: user.self=0.7s, sys.self=0.06s, elapsed=3s, user.child=NAs, sys.child=NAs Test 'tempdirname' ... success > > proc.time() user system elapsed 0.92 0.20 3.00