Learn R Programming

mirt (version 1.0)

mirtCluster: Define a parallel cluster object to be used in internal functions

Description

This function defines a object that is placed in the users workspace (i.e., the.GlobalEnv). Relevant internal functions such as calcLogLik, fscores, etc, will utilize this object automatically to capitalize on parallel processing architecture. The object defined is a call from parallel::makeCluster() and defines an object called MIRTCLUSTER.

Usage

mirtCluster(ncores, remove = FALSE)

Arguments

ncores
number of cores to be used in the returned object which is passed to parallel::makeCluster(). If no input is given the maximum number of available cores will be used
remove
logical; remove previously defined mirtCluster()?

Examples

Run this code
#make 4 cores available for parallel computing
mirtCluster(4)

#' #stop and remove cores
mirtCluster(remove = TRUE)

#use all available cores
mirtCluster()

Run the code above in your browser using DataLab