if (FALSE) {
# With parallel processing enabled
set_parallel_plan("multisession")
should_parallelize(5) # FALSE (below threshold)
should_parallelize(20) # TRUE (above threshold)
# With parallel processing disabled
set_parallel_plan("sequential")
should_parallelize(100) # FALSE (sequential plan)
}
Run the code above in your browser using DataLab