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")
)
fs.latency |
[ |
delete |
Controls if and when the batchtools job registry folder is
deleted.
If |
... |
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.