sfQuickInit {spatial.tools}R Documentation

Quickly initializes a parallel cluster and registers it with foreach.

Description

Quickly initializes a parallel cluster and registers it with foreach.

Usage

sfQuickInit(cpus, methods = FALSE, ...)

Arguments

cpus

Number of cpus. Will default to the max available cpus.

methods

Logical. Load the methods package? (if FALSE, faster startup). Default=FALSE.

...

parameters to pass to sfInit()

Details

(Even more) quickly start a parallel cluster with half of available cpus, parallel = TRUE, and type = "SOCK" and registers it with foreach.

Author(s)

Jonathan A. Greenberg

Examples

sfQuickInit(cpus=2)
sfQuickStop()

[Package spatial.tools version 1.6.0 Index]