R Under development (unstable) (2025-07-09 r88393 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-callr,launch-failure.R > ## Don't edit - it was autogenerated by inst/testme/deploy.R > future.callr:::testme("callr,launch-failure") Test 'callr,launch-failure' ... 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-callr,launch-failure.R' > library(future.callr) Loading required package: future > library(listenv) > options(future.debug = FALSE) > message("*** callr() ...") *** callr() ... > message("- Error in ./.Rprofile causes callr process to fail") - Error in ./.Rprofile causes callr process to fail > plan(callr, workers = 2) > for (kk in seq_len(nbrOfWorkers())) { + tf <- file.path(tempdir(), ".Rprofile") + cat("stop('boom')\n", file = tf) + f <- local({ + .... [TRUNCATED] > tf <- file.path(tempdir(), ".Rprofile") > cat("stop('boom')\n", file = tf) > f <- local({ + opwd <- setwd(dirname(tf)) + on.exit(setwd(opwd)) + future(42) + }) Warning in value[[3L]](cond) : [FUTURE INTERRUPTED]: Caught FutureInterruptError with error message: Future () of class CallrFuture failed for unknown reason while running, while running on localhost (pid 66956; exit code 1). CallrFuture () failed. The reason reported was '! callr subprocess failed: could not start R, exited with non-zero status, has crashed or was killed'. Post-mortem diagnostic: The parallel worker (PID 66956) started at 2025-07-10T13:30:55+0000 finished with exit code 1 > message(" - Waiting for future to finish") - Waiting for future to finish > f <- resolve(f) > r <- resolved(f) > print(r) [1] TRUE > stopifnot(is.logical(r), isTRUE(r)) > message(" - Getting results") - Getting results > res <- tryCatch(result(f), error = identity) > print(res) ) of class CallrFuture failed for unknown reason while running, while running on localhost (pid 101444; exit code 1). CallrFuture () failed. The reason reported was '! callr subprocess failed: could not start R, exited with non-zero status, has crashed or was killed'. Post-mortem diagnostic: The parallel worker (PID 101444) started at 2025-07-10T13:30:55+0000 finished with exit code 1> Future UUID: 9dc9b0e62003148a9875770debe81a6b-3 DEBUG: BEGIN TROUBLESHOOTING HELP Future involved: CallrFuture: Label: Expression: [1] 42 Globals: Packages: L'Ecuyer-CMRG RNG seed: (seed = FALSE) Capture standard output: TRUE Capture condition classes: 'condition' (excluding '') Immediate condition classes: 'immediateCondition' Lazy evaluation: FALSE Local evaluation: TRUE Asynchronous evaluation: TRUE Early signaling: FALSE Environment: 0x000001f82d5b8568 State: 'interrupted' Resolved: TRUE Unique identifier: 9dc9b0e62003148a9875770debe81a6b-3 Owner process: 9dc9b0e62003148a9875770debe81a6b Class: 'CallrFuture', 'Future' Value: Conditions captured: callr status: 'finished' callr information: PID=101444, PROCESS 'Rterm', finished. DEBUG: END TROUBLESHOOTING HELP > stopifnot(inherits(res, "error"), inherits(res, "FutureError"), + inherits(res, c("FutureInterruptError", "CallrFutureError"))) > file.remove(tf) [1] TRUE > message("*** callr() ... DONE") *** callr() ... 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_07_10_15_30_16_14122' Sourcing 6 epilogue scripts ... done Test time: user.self=0.2s, sys.self=0.03s, elapsed=1s, user.child=NAs, sys.child=NAs Test 'tempdirname' ... success > > proc.time() user system elapsed 0.40 0.12 1.76