manual_backend: Disable automatic doPar backend registering

View source: R/helper_functions.R

manual_backendR Documentation

Disable automatic doPar backend registering

Description

By default, parapurrr automatically register doPar backends for you. based on the provided "adaptor" argument in the function call, parapurrr will automatically handle (initiate, register and terminate) the selected doPar backend and it's infrastructures. But you can disable this behaviour and force manual control of the doPar backend. To do that your can:

  1. Call manual_backend(TRUE) once in your R session. After that, any value for "adaptor" argument in parapurrrr function calls will be ignored and you will have to manually handle the doPAr backend.

  2. Call any parapurrr function with adaptor = NULL.

Usage

manual_backend(force)

Arguments

force

(logical) Stop automatic handling the doPar backend by parapurrr? Supply TRUE to stop automatic handling of dopar backend and force the manual mode.

Value

NULL, Internally will change the corresponding option in R environment.

Examples

## Not run:  manual_backend(TRUE) 

moosa-r/parapurrr documentation built on July 14, 2022, 11:20 a.m.