View source: R/batchtools_interactive.R
| batchtools_interactive | R Documentation |
The batchtools interactive backend is useful for verifying parts of your batchtools setup locally, while still being able to do interactive debugging.
batchtools_interactive(
...,
fs.latency = 0,
delete = getOption("future.batchtools.delete", "on-success"),
registry = list(),
finalize = getOption("future.finalize", TRUE)
)
fs.latency |
[ |
delete |
Controls if and when the batchtools job registry folder is
deleted.
If |
registry |
(optional) A named list of settings applied to each
future's batchtools Registry.
This is a more convenient alternative to using argument |
finalize |
If TRUE, a future's batchtools Registry is automatically deleted when the future is garbage collected, otherwise not. |
... |
Not used. |
Batchtools interactive futures use batchtools cluster functions
created by batchtools::makeClusterFunctionsInteractive() with
external = FALSE.
An alternative to the batchtools interactive backend is to use
plan(future::sequential), which is a faster way process futures
sequentially and that also can be debugged interactively.
Nothing.
library(future)
plan(future.batchtools::batchtools_interactive)
message("Main process ID: ", Sys.getpid())
f <- future({
data.frame(
hostname = Sys.info()[["nodename"]],
os = Sys.info()[["sysname"]],
cores = unname(parallelly::availableCores()),
pid = Sys.getpid(),
modules = Sys.getenv("LOADEDMODULES")
)
})
info <- value(f)
print(info)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.