R Under development (unstable) (2025-06-05 r88281 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. > source("incl/start.R") Loading required package: parallelly Loading required package: future > library("listenv") > > message("*** batchtools_ssh() ...") *** batchtools_ssh() ... > > plan(batchtools_ssh, workers = 2L) > supports_ssh <- tryCatch({ + f <- future(42L) + v <- value(f) + identical(v, 42L) + }, error = function(e) FALSE) > message("Supports batchtools_ssh: ", supports_ssh) Supports batchtools_ssh: FALSE > > if (supports_ssh) { + message("future(a) ...") + a0 <- a <- 42 + f <- future(a) + stopifnot(identical(f$globals$a, a0)) + v <- value(f) + stopifnot(identical(v, a0)) + + message("future(a, lazy = TRUE) ...") + a0 <- a <- 42 + f <- future(a, lazy = TRUE) + rm(list = "a") + stopifnot(identical(f$globals$a, a0)) + v <- value(f) + stopifnot(identical(v, a0)) + } ## if (supports_ssh) > > message("*** batchtools_ssh() ... DONE") *** batchtools_ssh() ... DONE > > source("incl/end.R") > > proc.time() user system elapsed 0.95 0.32 1.39