c.config: Configure options for cores directly

Description Usage Arguments Examples

Description

ctools sets the default cores number to the maximum possible, this function allows the user to change the number of cores used in local-only parallel, i.e. PSOCKS clusters and FORK parallel. NOTE: Changing cores for PSOCKS, used exclusively on Windows machines, restarts the cluster, thus all exported objects are lost. Thus, it's recommended that this function be used shortly after loading the ctools package. Unix-like machines, e.g. Linux or OSX, use forking, so the core number can be changed at any time

Usage

1
2
## S3 method for class 'config'
c(cores = get("maxcores", envir = cluster))

Arguments

cores

the number of cores to assign, defaults to maximum number.

Examples

1
c.config(cores = 2)		# Set cores number to 2

bamonroe/ctools documentation built on May 11, 2019, 6:19 p.m.