set_looper: Set looper.

Description Usage Arguments Value See Also

View source: R/setters.R

Description

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).

Usage

1
set_looper(progress_bar = FALSE, n_core = 1)

Arguments

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.

Value

The looper to use depending on progress bar and whether to run in parallel or not.

See Also

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


easyml documentation built on June 26, 2017, 9:02 a.m.