This function decides which looper (a functional like lapply) to run. Please note this affects global state and sets the number of cores by ultimately running options(mc.cores = n_core).
set_looper(progress_bar = FALSE, n_core = 1)
| progress_bar | A logical vector of length one; specifies whether to display a progress bar during calculations. Defaults to TRUE. |
|---|---|
| n_core | An integer vector of length one; specifies the number of cores to use for this analysis. Currently only works on Mac OSx and Unix/Linux systems. Defaults to 1L. |
The looper to use depending on progress bar and whether to run in parallel or not.
Other setters: set_categorical_variables,
set_column_names, set_cores,
set_dependent_variable,
set_independent_variables,
set_looper_, set_measure,
set_parallel,
set_plot_model_performance,
set_plot_predictions,
set_preprocess,
set_random_state,
set_resample