#parallelization setup
future::plan(
future::multisession,
workers = 2 #set to parallelly::availableCores() - 1
)
#progress bar
# progressr::handlers(global = TRUE)
df_clusters <- cor_clusters(
df = vi[1:1000, ],
predictors = vi_predictors[1:15]
)
#disable parallelization
future::plan(future::sequential)
Run the code above in your browser using DataLab