RxLocalParallel: Generate Local Parallel Compute Context
Creates a local compute context object that uses the doParallel back-end for HPC computations performed using rxExec. This compute context can be used only to distribute computations via the rxExec function; it is ignored by Revolution HPA functions. This is the main generator for S4 class RxLocalParallel.
RxLocalParallel( object, dataPath = NULL, outDataPath = NULL )
a compute context object. If object
has slots for dataPath
and/or outDataPath
, they will be copied to the equivalent slots for the new RxLocalParallel
object. Explicit specifications of the dataPath
and/or outDataPath arguments will override this.
NULL
or character vector defining the search path(s) for the input data source(s). If not NULL
, it overrides any specification for dataPath
in rxOptions
NULL
or character vector defining the search path(s) for new output data file(s). If not NULL
, this overrides any specification for dataPath
in rxOptions
A job is associated with the compute context in effect at the time the job was submitted. If the compute context subsequently changes, the compute context of the job is not affected.
Note that dataPath
and outDataPath
are only utiltized by
data sources used in RevoScaleR analyses. They do not alter the
working directory for other R functions that read from or write to files.
object of class RxLocalParallel.
Microsoft Corporation Microsoft Technical Support
rxSetComputeContext, rxExec, rxOptions, RxComputeContext, RxLocalSeq, RxForeachDoPar, RxLocalParallel-class.
## Not run:
# Create a RxLocalParallel object to use with rxExec
parallelContext <- RxLocalParallel()
# Tell RevoScaleR to use parallelContext compute context
rxSetComputeContext( parallelContext )
# Subsequent calls to rxExec will use the doParallel package
# behind the scenes.
## End(Not run)