Learn R Programming

aqp (version 0.97)

checkMC: Check for Multi-Core Resources

Description

Internally used function for determining the availability of resources required for parallel computations via the plyr (version >= 1.2), doMC, and foreach packages.

Usage

checkMC(n = 2)

Arguments

n
number of cores to use, defaults to 2

Value

  • TRUE if required packages are installed, otherwise FALSE

Details

The introduction of parallel computing to the AQP package is still experimental. Therefore, parallel computation for AQP functions must manually be enabled with options(AQP_parallel=TRUE).

References

http://www.mail-archive.com/r-help@r-project.org/msg109348.html

See Also

ddply

Examples

Run this code
# manually enable parallel computations
options(AQP_parallel=TRUE)

# result will depend on the above option and your specific system configuration
checkMC(n=2)

Run the code above in your browser using DataLab