# Set up parallel processing with a specified number of cores
cl <- setup_parallel(num_cores = 2) # Use 2 cores for the example
print(cl) # Print the cluster information
parallel::stopCluster(cl) # Stop the cluster after use to clean up
Run the code above in your browser using DataLab