reset_llm_parallel {LLMR} | R Documentation |
Reset Parallel Environment
Description
Resets the future plan to sequential processing.
Usage
reset_llm_parallel(verbose = FALSE)
Arguments
verbose |
Logical. If TRUE, prints reset information. |
Value
Invisibly returns the future plan that was in place before resetting to sequential (often the default sequential plan).
Examples
## Not run:
# Setup parallel processing
old_plan <- setup_llm_parallel(workers = 2)
# Do some parallel work...
# Reset to sequential
reset_llm_parallel(verbose = TRUE)
# Optionally restore the specific old_plan if it was non-sequential
# future::plan(old_plan)
## End(Not run)
[Package LLMR version 0.3.0 Index]