Learn R Programming

LLMR (version 0.4.2)

reset_llm_parallel: Reset Parallel Environment

Description

Resets the future plan to sequential processing.

Usage

reset_llm_parallel(verbose = FALSE)

Value

Invisibly returns the future plan that was in place before resetting to sequential.

Arguments

verbose

Logical. If TRUE, prints reset information.

Examples

Run this code
if (FALSE) {
  # 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)
}

Run the code above in your browser using DataLab